Revision: 4988
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4988&view=rev
Author:   mdboom
Date:     2008-02-25 12:24:33 -0800 (Mon, 25 Feb 2008)

Log Message:
-----------
Fix memory reservation for curve to line segment conversion.

Modified Paths:
--------------
    trunk/matplotlib/src/_path.cpp

Modified: trunk/matplotlib/src/_path.cpp
===================================================================
--- trunk/matplotlib/src/_path.cpp      2008-02-25 20:21:39 UTC (rev 4987)
+++ trunk/matplotlib/src/_path.cpp      2008-02-25 20:24:33 UTC (rev 4988)
@@ -1120,7 +1120,7 @@
     double x, y;
     unsigned code;
 
-    polygon.reserve(path.total_vertices());
+    polygon.reserve(path.total_vertices() * 2);
 
     while ((code = curve.vertex(&x, &y)) != agg::path_cmd_stop)
     {


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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to