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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Sun Oct 3 04:47:23 EDT 2010


Author: hubu
Date: 2010-10-03 08:47:23 +0000 (Sun, 03 Oct 2010)
New Revision: 5237

Modified:
   trunk/MgDev/Common/Stylization/StylizationEngine.cpp
Log:
On behalf of: Spark Liu

Fix problem that totally opaque watermark will not be rendered.

Reason: To optimize watermark rendering, there is code to jump over if watermark is totally transparent. However, the logic about judging "totally transparent" is actually "totally opaque" in the incorrect code.

Fix way: change the logic to the correct way.

Modified: trunk/MgDev/Common/Stylization/StylizationEngine.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/StylizationEngine.cpp	2010-10-03 07:06:27 UTC (rev 5236)
+++ trunk/MgDev/Common/Stylization/StylizationEngine.cpp	2010-10-03 08:47:23 UTC (rev 5237)
@@ -285,7 +285,7 @@
         if (style->symbol.size() == 0)
             continue;
 
-        if (opacity > 0.9999)   // opaque is 1
+        if (opacity < 0.001)   // opaque is 0
             continue;
 
         size_t nPrimitives = style->symbol.size();



More information about the mapguide-commits mailing list