Revision: 4283
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4283&view=rev
Author: mdboom
Date: 2007-11-14 10:38:05 -0800 (Wed, 14 Nov 2007)
Log Message:
-----------
Fix alignment of clipping rectangles.
Modified Paths:
--------------
branches/transforms/src/_backend_agg.cpp
Modified: branches/transforms/src/_backend_agg.cpp
===================================================================
--- branches/transforms/src/_backend_agg.cpp 2007-11-14 18:36:45 UTC (rev
4282)
+++ branches/transforms/src/_backend_agg.cpp 2007-11-14 18:38:05 UTC (rev
4283)
@@ -282,7 +282,8 @@
double l, b, r, t;
if (py_convert_bbox(cliprect.ptr(), l, b, r, t)) {
- rasterizer->clip_box((int)l + 1, height - (int)(b + 1), (int)r + 1, height
- (int)(t + 1));
+ rasterizer->clip_box(int(round(l)) + 1, height - int(round(b)) + 1,
+ int(round(r)) + 1, height - int(round(t)) + 1);
}
_VERBOSE("RendererAgg::set_clipbox done");
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins