From: Cédric Aguerre Date: Mon, 7 Dec 2015 16:58:10 +0000 (+0100) Subject: Fix broken python console X-Git-Tag: V8_0_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b7bcea923fea468a9f173c0fb7bb92d76e799184;p=modules%2Fgui.git Fix broken python console --- diff --git a/src/PyInterp/PyInterp_Interp.cxx b/src/PyInterp/PyInterp_Interp.cxx index f2c286d43..5da3c537f 100644 --- a/src/PyInterp/PyInterp_Interp.cxx +++ b/src/PyInterp/PyInterp_Interp.cxx @@ -450,7 +450,7 @@ static int compile_command(const char *command, PyObject * global_ctxt, PyObject std::string singleCommand = command; std::string commandArgs = ""; - while (singleCommand.size() > 0 && singleCommand.at(singleCommand.size()-1) == '\n') + if (singleCommand.size() > 0 && singleCommand.at(singleCommand.size()-1) == '\n') singleCommand.erase(singleCommand.size()-1); std::size_t pos = singleCommand.find("args:"); if (pos != std::string::npos) {