|
From: <md...@us...> - 2010-07-06 15:18:49
|
Revision: 8515
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8515&view=rev
Author: mdboom
Date: 2010-07-06 15:18:43 +0000 (Tue, 06 Jul 2010)
Log Message:
-----------
Reset clipping upon exit of draw_markers to avoid negative interaction with blitting.
Modified Paths:
--------------
trunk/matplotlib/src/_backend_agg.cpp
Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp 2010-07-06 14:48:31 UTC (rev 8514)
+++ trunk/matplotlib/src/_backend_agg.cpp 2010-07-06 15:18:43 UTC (rev 8515)
@@ -796,6 +796,8 @@
delete[] fillCache;
if (strokeCache != staticStrokeCache)
delete[] strokeCache;
+ theRasterizer.reset_clipping();
+ rendererBase.reset_clipping(true);
throw;
}
@@ -804,6 +806,9 @@
if (strokeCache != staticStrokeCache)
delete[] strokeCache;
+ theRasterizer.reset_clipping();
+ rendererBase.reset_clipping(true);
+
return Py::Object();
}
@@ -1086,6 +1091,7 @@
{
set_clipbox(gc.cliprect, rendererBase);
rendererBase.blend_from(pixf, 0, (int)x, (int)(height - (y + image->rowsOut)));
+ rendererBase.reset_clipping(true);
}
image->flipud_out(empty);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|