]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Problem of compilation on Mandriva64 fixed
authorsln <sln@opencascade.com>
Thu, 24 May 2007 07:52:20 +0000 (07:52 +0000)
committersln <sln@opencascade.com>
Thu, 24 May 2007 07:52:20 +0000 (07:52 +0000)
src/PythonConsole/PythonConsole_PyEditor.cxx

index e28ddcf0c399a2c2bb47b08c214b6f36b49e35b1..6de0f03c84220fe8fa2ca66a59787feac34a34c1 100755 (executable)
@@ -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";