Revision: 4180
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4180&view=rev
Author:   dsdale
Date:     2007-11-09 05:20:10 -0800 (Fri, 09 Nov 2007)

Log Message:
-----------
committed Martin Teichmann's patch 1828813 to fix qt4 error messages
related to QPainter

Modified Paths:
--------------
    trunk/matplotlib/CHANGELOG
    trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py

Modified: trunk/matplotlib/CHANGELOG
===================================================================
--- trunk/matplotlib/CHANGELOG  2007-11-09 13:19:38 UTC (rev 4179)
+++ trunk/matplotlib/CHANGELOG  2007-11-09 13:20:10 UTC (rev 4180)
@@ -1,3 +1,9 @@
+2007-11-09 Applied Martin Teichmann's patch 1828813: a QPainter is used in
+           paintEvent, which has to be destroyed using  the method end(). If 
+           matplotlib raises an exception before the call to end - and it 
+           does if you feed it with bad data - this method end() is never 
+           called and Qt4 will start spitting error messages - DSD
+
 2007-11-09 Moved pyparsing back into matplotlib namespace. Don't use 
            system pyparsing, API is too variable from one release
            to the next - DSD

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py  2007-11-09 
13:19:38 UTC (rev 4179)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py  2007-11-09 
13:20:10 UTC (rev 4180)
@@ -116,6 +116,7 @@
             qImage = QtGui.QImage(stringBuffer, w, h, 
QtGui.QImage.Format_ARGB32)
             p = QtGui.QPainter(self)
             pixmap = QtGui.QPixmap.fromImage(qImage)
+            p = QtGui.QPainter( self )
             p.drawPixmap(QtCore.QPoint(l, self.renderer.height-t), pixmap)
             p.end()
         self.replot = False


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to