[mapserver-commits] r11525 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Mon Apr 11 12:03:00 EDT 2011
Author: tbonfort
Date: 2011-04-11 09:03:00 -0700 (Mon, 11 Apr 2011)
New Revision: 11525
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapgd.c
Log:
fix crash in GD lines with floating point dash patterns (#3823)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2011-04-11 14:34:38 UTC (rev 11524)
+++ trunk/mapserver/HISTORY.TXT 2011-04-11 16:03:00 UTC (rev 11525)
@@ -15,6 +15,8 @@
Current Version (SVN trunk):
----------------------------
+- fix crash in GD lines with floating point dash patterns (#3823)
+
- Check renderer before using it when calculating label size (#3822)
- allow palette file path to be relative to mapfile (#2115)
Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c 2011-04-11 14:34:38 UTC (rev 11524)
+++ trunk/mapserver/mapgd.c 2011-04-11 16:03:00 UTC (rev 11525)
@@ -333,7 +333,7 @@
k=0;
for(i=0; i<stroke->patternlength; i++) {
- for(j=0; j<stroke->pattern[i]; j++, k++) {
+ for(j=0; j<MS_NINT(stroke->pattern[i]); j++, k++) {
style[k] = sc;
}
sc = ((sc==c)?gdTransparent:c);
More information about the mapserver-commits
mailing list