Revision: 6903
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6903&view=rev
Author: mdboom
Date: 2009-02-10 16:09:38 +0000 (Tue, 10 Feb 2009)
Log Message:
-----------
Minor comment and indentation fixes.
Modified Paths:
--------------
trunk/matplotlib/src/path_converters.h
Modified: trunk/matplotlib/src/path_converters.h
===================================================================
--- trunk/matplotlib/src/path_converters.h 2009-02-10 04:47:57 UTC (rev
6902)
+++ trunk/matplotlib/src/path_converters.h 2009-02-10 16:09:38 UTC (rev
6903)
@@ -162,7 +162,8 @@
return code;
}
- if (needs_move_to) {
+ if (needs_move_to)
+ {
queue_push(agg::path_cmd_move_to, *x, *y);
}
@@ -185,6 +186,9 @@
queue_clear();
+ /* If the last point is finite, we use that for the
+ moveto, otherwise, we'll use the first vertex of
+ the next curve. */
if (!(MPL_notisfinite64(*x) || MPL_notisfinite64(*y)))
{
queue_push(agg::path_cmd_move_to, *x, *y);
@@ -318,8 +322,8 @@
m_lastY = *y;
unsigned moved = agg::clip_line_segment(&x0, &y0, &x1,
&y1, m_cliprect);
// moved >= 4 - Fully clipped
- // moved != 0 - First point has been moved
- // moved != 0 - Second point has been moved
+ // moved & 1 != 0 - First point has been moved
+ // moved & 2 != 0 - Second point has been moved
if (moved < 4)
{
if (moved & 1)
@@ -480,7 +484,7 @@
m_lastMax(false), m_nextX(0.0), m_nextY(0.0),
m_lastWrittenX(0.0), m_lastWrittenY(0.0)
{
- // empty
+ // empty
}
inline void rewind(unsigned path_id)
@@ -719,7 +723,8 @@
/* If we clipped some segments between this line and the next line
we are starting, we also need to move to the last point. */
- if (m_clipped) {
+ if (m_clipped)
+ {
queue_push(agg::path_cmd_move_to, m_lastx, m_lasty);
}
else if (!m_lastMax)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins