From 59dd95319372bbdc798515139be4b9d007c51cd3 Mon Sep 17 00:00:00 2001 From: sln Date: Mon, 28 May 2007 09:33:37 +0000 Subject: [PATCH] threshold value decreased in setText method because of problem of dispalying long strings on Mandriva. --- src/PythonConsole/PythonConsole_PyEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2