From: sln Date: Thu, 24 May 2007 07:52:20 +0000 (+0000) Subject: Problem of compilation on Mandriva64 fixed X-Git-Tag: T15881~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca79bbff78ff47918dcb581e52fcd5213307e2d7;p=modules%2Fgui.git Problem of compilation on Mandriva64 fixed --- 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";