]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor: cursor position wasn't handled properly.
authorbruneton <bruneton>
Thu, 4 Apr 2013 14:46:29 +0000 (14:46 +0000)
committerbruneton <bruneton>
Thu, 4 Apr 2013 14:46:29 +0000 (14:46 +0000)
src/PyConsole/PyConsole_Editor.cxx

index cee79f24547e089d61aab79abfd91954ebe8c7db..2d7317ba49859c458ad34324366a2a08d6504bc3 100644 (file)
@@ -398,7 +398,9 @@ void PyConsole_Editor::execAndWait( const QString& command )
 void PyConsole_Editor::handleReturn()
 {
   // Position cursor at the end
-  textCursor().movePosition(QTextCursor::End);
+  QTextCursor curs(textCursor());
+  curs.movePosition(QTextCursor::End);
+  setTextCursor(curs);
 
   // get last line
   QTextBlock par = document()->end().previous();