[mapguide-commits] r9020 - sandbox/adsk/3.1n/Common/Renderers
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Aug 11 21:15:37 PDT 2016
Author: christinebao
Date: 2016-08-11 21:15:37 -0700 (Thu, 11 Aug 2016)
New Revision: 9020
Modified:
sandbox/adsk/3.1n/Common/Renderers/AGGRenderer.cpp
Log:
#2736: Server crash when layer contains complicate symbols https://trac.osgeo.org/mapguide/ticket/2736
Refine submission 9019.
Modified: sandbox/adsk/3.1n/Common/Renderers/AGGRenderer.cpp
===================================================================
--- sandbox/adsk/3.1n/Common/Renderers/AGGRenderer.cpp 2016-08-10 06:40:17 UTC (rev 9019)
+++ sandbox/adsk/3.1n/Common/Renderers/AGGRenderer.cpp 2016-08-12 04:15:37 UTC (rev 9020)
@@ -1806,9 +1806,9 @@
// clear the affected region of the alpha mask
agg::gray8 cc(0);
- unsigned width = (int)imaxx - (int)iminx + 1;
- if (width > 0)
- {
+ if (imaxx >= iminx)
+ {
+ unsigned width = (int)imaxx - (int)iminx + 1;
for (int y = iminy; y <= imaxy; ++y)
c()->mask_pixf->copy_hline(iminx, y, width, cc);
}
More information about the mapguide-commits
mailing list