Revision: 7420
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7420&view=rev
Author: mdboom
Date: 2009-08-07 19:39:27 +0000 (Fri, 07 Aug 2009)
Log Message:
-----------
Fix segfault in Agg backend
Modified Paths:
--------------
trunk/matplotlib/src/_backend_agg.cpp
Modified: trunk/matplotlib/src/_backend_agg.cpp
===================================================================
--- trunk/matplotlib/src/_backend_agg.cpp 2009-08-07 18:33:02 UTC (rev
7419)
+++ trunk/matplotlib/src/_backend_agg.cpp 2009-08-07 19:39:27 UTC (rev
7420)
@@ -1270,9 +1270,11 @@
_VERBOSE("RendererAgg::draw_path_collection");
args.verify_length(12);
- GCAgg gc(args[0], dpi);
+ Py::Object gc_obj = args[0];
+ GCAgg gc(gc_obj, dpi);
agg::trans_affine master_transform =
py_to_agg_transformation_matrix(args[1].ptr());
- PathListGenerator paths(args[2]);
+ Py::SeqBase<Py::Object> path = args[2];
+ PathListGenerator path_generator(path);
Py::SeqBase<Py::Object> transforms_obj = args[3];
Py::Object offsets_obj = args[4];
agg::trans_affine offset_trans =
py_to_agg_transformation_matrix(args[5].ptr());
@@ -1283,7 +1285,6 @@
Py::SeqBase<Py::Int> antialiaseds = args[10];
// We don't actually care about urls for Agg, so just ignore it.
// Py::SeqBase<Py::Object> urls = args[11];
- PathListGenerator path_generator(paths);
try {
_draw_path_collection_generic<PathListGenerator, 0, 1>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins