From: mzn Date: Wed, 7 Sep 2005 10:16:17 +0000 (+0000) Subject: Fix for bug PAL9354 (Can't edit a python line). X-Git-Tag: T2_2_5b~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=322191d7a58e07a3ef09ca9345ef2b4783101169;p=modules%2Fkernel.git Fix for bug PAL9354 (Can't edit a python line). --- diff --git a/src/SALOMEGUI/QAD_PyEditor.cxx b/src/SALOMEGUI/QAD_PyEditor.cxx index 10c70d5fb..a681b8eec 100644 --- a/src/SALOMEGUI/QAD_PyEditor.cxx +++ b/src/SALOMEGUI/QAD_PyEditor.cxx @@ -458,7 +458,7 @@ void QAD_PyEditor::keyPressEvent( QKeyEvent* e ) if ( previousCommand.compare( BEGIN_HISTORY_PY ) != 0 ) { removeParagraph( endLine ); histLine.append( previousCommand ); - insertParagraph( histLine, -1 ); + append( histLine ); } moveCursor( QTextEdit::MoveEnd, false ); } @@ -487,14 +487,14 @@ void QAD_PyEditor::keyPressEvent( QKeyEvent* e ) if ( nextCommand.compare( TOP_HISTORY_PY ) != 0 ) { removeParagraph( endLine ); histLine.append( nextCommand ); - insertParagraph( histLine, -1 ); + append( histLine ); } else { if (_isInHistory) { _isInHistory = false; removeParagraph( endLine ); histLine.append( _currentCommand ); - insertParagraph( histLine, -1 ); + append( histLine ); } } moveCursor( QTextEdit::MoveEnd, false );