[mapguide-commits] r7261 - sandbox/adsk/2.5k/Common/Stylization

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Dec 12 10:42:19 PST 2012


Author: waltweltonlair
Date: 2012-12-12 10:42:19 -0800 (Wed, 12 Dec 2012)
New Revision: 7261

Modified:
   sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp
Log:
Merge trunk changeset 7260 into adsk/2.4k branch stream.

This is a follow-up submission for ticket #2197 (The usage of "swscanf" results in bad performance in MgStylization.dll).


Modified: sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp
===================================================================
--- sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp	2012-12-12 18:40:19 UTC (rev 7260)
+++ sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp	2012-12-12 18:42:19 UTC (rev 7261)
@@ -179,22 +179,21 @@
             else
                 strTmp++;
         }
-#ifdef _DEBUG  // We shouldn't be here unless the geometry string is malformed.
+#ifdef _DEBUG
         else if (*strTmp == L',')
         {
-            // unexpected comma and ParseDoublePair should be used
+            // We shouldn't be here unless there is an unexpected comma and "ParseDoublePair" should be used.
             _ASSERT(false);
             quick_parse = false;
             break;
         }
+#endif
         else if (IsTag(*strTmp))
         {
-            // white-space must be missing
-            _ASSERT(false);
+            // We shouldn't be here unless white-space is missing, like "-0.571M -0.5,-0.2855"
             quick_parse = (buffer_len > 0);
             break;
         }
-#endif
         else
         {
             buffer[buffer_len] = *strTmp++;
@@ -297,15 +296,12 @@
             buffer_len = 0;
             strTmp++;
         }
-#ifdef _DEBUG  // We shouldn't be here unless the geometry string is malformed.
         else if (IsTag(*strTmp))
         {
-            // the white-space must be missing
-            _ASSERT(false);
+            // We shouldn't be here unless white-space is missing, like "0.485,-0.571M -0.5,-0.2855"
             quick_parse = (read_x && buffer_len > 0);
             break;
         }
-#endif
         else
         {
             buffer[buffer_len] = *strTmp++;



More information about the mapguide-commits mailing list