Revision: 6201
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6201&view=rev
Author:   mdboom
Date:     2008-10-15 12:35:23 +0000 (Wed, 15 Oct 2008)

Log Message:
-----------
Minor code cleanup.

Modified Paths:
--------------
    trunk/matplotlib/src/agg_py_path_iterator.h

Modified: trunk/matplotlib/src/agg_py_path_iterator.h
===================================================================
--- trunk/matplotlib/src/agg_py_path_iterator.h 2008-10-15 12:34:59 UTC (rev 
6200)
+++ trunk/matplotlib/src/agg_py_path_iterator.h 2008-10-15 12:35:23 UTC (rev 
6201)
@@ -360,7 +360,7 @@
                 double paradNorm2 = paradx*paradx + parady*parady;
 
                 m_lastMax = false;
-                if (totdot >= 0)
+                if (totdot >= 0.0)
                 {
                     if (paradNorm2 > m_dnorm2Max)
                     {
@@ -388,6 +388,7 @@
                 #endif
                 continue;
             }
+
             //if we get here, then this vector was not similar enough to the
             //line we are building, so we need to draw that line and start the
             //next one.
@@ -395,7 +396,6 @@
             //if the line needs to extend in the opposite direction from the
             //direction we are drawing in, move back to we start drawing from
             //back there.
-
             _push(x, y);
 
             break;
@@ -406,7 +406,7 @@
         // m_source->vertex again and segfault.
         if (cmd == agg::path_cmd_stop)
         {
-            if (m_origdNorm2 != 0)
+            if (m_origdNorm2 != 0.0)
             {
                 if (m_haveMin)
                 {
@@ -432,12 +432,6 @@
     }
 
 private:
-    VertexSource* m_source;
-    bool m_quantize;
-    bool m_simplify;
-    double m_width, m_height;
-
-    static const int m_queue_size = 6;
     struct item
     {
         item() {}
@@ -451,30 +445,37 @@
         double x;
         double y;
     };
-    int m_queue_read;
-    int m_queue_write;
+
+    VertexSource* m_source;
+    bool          m_quantize;
+    bool          m_simplify;
+    double        m_width, m_height;
+
+    static const int m_queue_size = 6;
+    int  m_queue_read;
+    int  m_queue_write;
     item m_queue[m_queue_size];
 
-    bool m_moveto;
-    bool m_after_moveto;
+    bool   m_moveto;
+    bool   m_after_moveto;
     double m_lastx, m_lasty;
-    bool m_clipped;
-    bool m_do_clipping;
+    bool   m_clipped;
+    bool   m_do_clipping;
 
     double m_origdx;
     double m_origdy;
     double m_origdNorm2;
     double m_dnorm2Max;
     double m_dnorm2Min;
-    bool m_haveMin;
-    bool m_lastMax;
+    bool   m_haveMin;
+    bool   m_lastMax;
     double m_maxX;
     double m_maxY;
     double m_minX;
     double m_minY;
     double m_lastWrittenX;
     double m_lastWrittenY;
-    bool m_done;
+    bool   m_done;
 
     #if DEBUG_SIMPLIFY
         unsigned m_pushed;


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to