[mapguide-commits] r5055 - trunk/MgDev/Common/Stylization

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jul 27 13:19:08 EDT 2010


Author: waltweltonlair
Date: 2010-07-27 17:19:08 +0000 (Tue, 27 Jul 2010)
New Revision: 5055

Modified:
   trunk/MgDev/Common/Stylization/SE_Renderer.cpp
Log:
Don't waste time rendering symbol text elements which have no content.

Modified: trunk/MgDev/Common/Stylization/SE_Renderer.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/SE_Renderer.cpp	2010-07-26 03:22:22 UTC (rev 5054)
+++ trunk/MgDev/Common/Stylization/SE_Renderer.cpp	2010-07-27 17:19:08 UTC (rev 5055)
@@ -423,6 +423,10 @@
         {
             SE_RenderText* tp = (SE_RenderText*)primitive;
 
+            // skip text elements which are empty
+            if (tp->content.length() == 0)
+                continue;
+
             // update the extents with this primitive's bounds
             for (int j=0; j<4; ++j)
                 extents.add_point(primitive->bounds[j]);



More information about the mapguide-commits mailing list