From ca79bbff78ff47918dcb581e52fcd5213307e2d7 Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 24 May 2007 07:52:20 +0000 Subject: [PATCH] Problem of compilation on Mandriva64 fixed --- src/PythonConsole/PythonConsole_PyEditor.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index e28ddcf0c..6de0f03c8 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -163,11 +163,11 @@ void PythonConsole_PyEditor::setText(QString s) s.truncate( n ); if ( n >= 5 ) { - s[ n - 5 ] = QChar( ' ' ); - s[ n - 4 ] = QChar( '.' ); - s[ n - 3 ] = QChar( '.' ); - s[ n - 2 ] = QChar( '.' ); - s[ n - 1 ] = QChar( '\n' ); + s.at( n - 5 ) = QChar( ' ' ); + s.at( n - 4 ) = QChar( '.' ); + s.at( n - 3 ) = QChar( '.' ); + s.at( n - 2 ) = QChar( '.' ); + s.at( n - 1 ) = QChar( '\n' ); } else s = " ...\n"; -- 2.39.2