From 6b4ea3336c07396d5ddc9adbf3e958149656c3af Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Thu, 13 Dec 2018 20:10:31 +0100 Subject: [PATCH] Boost Python String conversion causes problems with Boost 1.65. Changes in e9384a9fc95b88ede3de997a0fb03729bb864cc5 must be also applied on calls to boost::python::eval --- modules/gui/src/python_shell/python_interpreter_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/src/python_shell/python_interpreter_worker.cc b/modules/gui/src/python_shell/python_interpreter_worker.cc index ed1dea231..842b1c4dd 100644 --- a/modules/gui/src/python_shell/python_interpreter_worker.cc +++ b/modules/gui/src/python_shell/python_interpreter_worker.cc @@ -119,7 +119,7 @@ void PythonInterpreterWorker::run_command_(std::pair<unsigned int,QString> pair) current_id_=pair.first; QString command=pair.second; if(is_simple_expression(command)){ - bp::object result=bp::eval(bp::str(command.toStdString()), + bp::object result=bp::eval(command.toStdString().c_str(), main_namespace_, main_namespace_); String rstring=bp::extract<String>(repr_(result)); if(rstring!="None"){ -- GitLab