From: sln Date: Mon, 28 May 2007 09:33:37 +0000 (+0000) Subject: threshold value decreased in setText method because of problem of dispalying long... X-Git-Tag: T15881~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59dd95319372bbdc798515139be4b9d007c51cd3;p=modules%2Fgui.git threshold value decreased in setText method because of problem of dispalying long strings on Mandriva. --- diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index baa34cac9..c585838c4 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -146,7 +146,7 @@ void PythonConsole_PyEditor::setText(QString s) // If it will be insufficient for other cases then more complicated check should be implemented. // At present it is not done because of possible performance problem. - static int threshold = 2000000; + static int threshold = 50000; long strLength = s.length(); if ( col + strLength <= threshold || s.find( '\n' ) < threshold ) insertAt(s,para,col);