Revision: 7901
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7901&view=rev
Author: mdboom
Date: 2009-10-22 13:46:08 +0000 (Thu, 22 Oct 2009)
Log Message:
-----------
Fix path simplification so the path always starts with a MOVETO.
Modified Paths:
--------------
branches/v0_99_maint/src/path_converters.h
Modified: branches/v0_99_maint/src/path_converters.h
===================================================================
--- branches/v0_99_maint/src/path_converters.h 2009-10-22 13:43:31 UTC (rev
7900)
+++ branches/v0_99_maint/src/path_converters.h 2009-10-22 13:46:08 UTC (rev
7901)
@@ -684,9 +684,15 @@
{
if (m_origdNorm2 != 0.0)
{
- queue_push(agg::path_cmd_line_to, m_nextX, m_nextY);
+ queue_push((m_moveto || m_after_moveto) ?
+ agg::path_cmd_move_to : agg::path_cmd_line_to,
+ m_nextX, m_nextY);
+ m_moveto = false;
}
- queue_push(agg::path_cmd_line_to, m_lastx, m_lasty);
+ queue_push((m_moveto || m_after_moveto) ?
+ agg::path_cmd_move_to : agg::path_cmd_line_to,
+ m_lastx, m_lasty);
+ m_moveto = false;
queue_push(agg::path_cmd_stop, 0.0, 0.0);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins