From: <ai...@us...> - 2014-07-11 18:32:25
|
Revision: 13137 http://sourceforge.net/p/plplot/code/13137 Author: airwin Date: 2014-07-11 18:32:21 +0000 (Fri, 11 Jul 2014) Log Message: ----------- Implement a small change suggested by Jonathan Woithe <jw...@ju...> on the PLplot development mailing list. He reports this change removes intermittent "QColor::setRgb: RGB parameters out of range) warnings. My own tests using the test_interactive target on Linux show no issues with this change as well. Modified Paths: -------------- trunk/bindings/qt_gui/plqt.cpp Modified: trunk/bindings/qt_gui/plqt.cpp =================================================================== --- trunk/bindings/qt_gui/plqt.cpp 2014-07-07 01:42:58 UTC (rev 13136) +++ trunk/bindings/qt_gui/plqt.cpp 2014-07-11 18:32:21 UTC (rev 13137) @@ -674,7 +674,12 @@ resize( i_iWidth, i_iHeight ); lastColour.r = -1; setVisible( true ); - QApplication::processEvents(); + // Dropping this appears to give more reliable results + // (QColor::setRgb: RGB parameters out of range warnings go away) + // according to Jonathan Woithe <jw...@ju...> and according + // to my own tests does not affect results from the + // test_interactive target. + // QApplication::processEvents(); redrawFromLastFlush = false; redrawAll = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |