[mapserver-commits] r9732 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Jan 22 10:27:38 EST 2010
Author: assefa
Date: 2010-01-22 10:27:37 -0500 (Fri, 22 Jan 2010)
New Revision: 9732
Modified:
trunk/mapserver/maptemplate.c
Log:
Validate return value inside Shplabel function #3241
Modified: trunk/mapserver/maptemplate.c
===================================================================
--- trunk/mapserver/maptemplate.c 2010-01-22 13:45:57 UTC (rev 9731)
+++ trunk/mapserver/maptemplate.c 2010-01-22 15:27:37 UTC (rev 9732)
@@ -1602,8 +1602,8 @@
if (shape->numlines > 0)
{
+ if (msPolygonLabelPoint(shape, &labelPos, -1) == MS_SUCCESS)
labelposvalid = MS_TRUE;
- msPolygonLabelPoint(shape, &labelPos, -1);
}
}
if (labelposvalid == MS_TRUE)
More information about the mapserver-commits
mailing list