-//*****************************************************
+//*****************************************************/
// Pane for Python script editing
-//*****************************************************
+//*****************************************************/
SUPERVGUI_PythonEditPane::SUPERVGUI_PythonEditPane( QWidget* theParent, const bool isNodeCreation, int& theX, int& theY )
: myIsWithLibrary( isNodeCreation ),
QFrame( theParent ),
// it's user's responsibility to enter correct Python code, we don't do anything with it.
// if (..) -- initial, while(..) -- my improvement, but also commented out -- needless.
//if (!aLine.right(1).compare(" ")) // replaced with the line below -- loop
- //while (aLine.at(aLine.length()-1).isSpace()) // remove trailing spaces
- // aLine = aLine.remove(aLine.length()-1,1);
+ // uncommented by mkr to fix bugs IPAL12363, IPAL12885 -->
+ while (aLine.at(aLine.length()-1).isSpace()) // remove trailing spaces
+ aLine = aLine.remove(aLine.length()-1,1);
+ // <--
aStrings[i] = CORBA::string_dup(aLine.latin1());
}
return aStrings._retn();
i = -1;
while ( line[++i].isSpace() ) // append all isSpace() characters at beginning of line to spacesStr
spacesStr += line[i];
-
+
// if ':' was found -- add more spaces to spacesStr
line = line.stripWhiteSpace();
if ( line[ line.length()-1 ] == ':' ) {