From 322191d7a58e07a3ef09ca9345ef2b4783101169 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 7 Sep 2005 10:16:17 +0000 Subject: [PATCH] Fix for bug PAL9354 (Can't edit a python line). --- src/SALOMEGUI/QAD_PyEditor.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.39.2