|
From: <sm...@us...> - 2008-11-19 15:51:08
|
Revision: 8999
http://plplot.svn.sourceforge.net/plplot/?rev=8999&view=rev
Author: smekal
Date: 2008-11-19 15:51:00 +0000 (Wed, 19 Nov 2008)
Log Message:
-----------
Fixed a bug which only on Mac OS X prevented plots from being updated.
Modified Paths:
--------------
trunk/drivers/wxwidgets_dc.cpp
Modified: trunk/drivers/wxwidgets_dc.cpp
===================================================================
--- trunk/drivers/wxwidgets_dc.cpp 2008-11-19 15:34:01 UTC (rev 8998)
+++ trunk/drivers/wxwidgets_dc.cpp 2008-11-19 15:51:00 UTC (rev 8999)
@@ -145,7 +145,8 @@
for( int i=0; i < pls->dev_npts; i++ ) {
points[i].x=(int)(pls->dev_x[i]/scalex);
points[i].y=(int)(height-pls->dev_y[i]/scaley);
- AddtoClipRegion( points[i-1].x, points[i-1].y, points[i].x, points[i].y );
+ if(i>0)
+ AddtoClipRegion( points[i-1].x, points[i-1].y, points[i].x, points[i].y );
}
m_dc->DrawPolygon( pls->dev_npts, points );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|