[mapserver-commits] r13010 - sandbox/sdlime/rfc-77
svn at osgeo.org
svn at osgeo.org
Mon Jan 23 08:09:28 EST 2012
Author: sdlime
Date: 2012-01-23 05:09:28 -0800 (Mon, 23 Jan 2012)
New Revision: 13010
Modified:
sandbox/sdlime/rfc-77/maplayer.c
Log:
Fixed array index problem in maplayer.c. Backgrounds work but there's a double-free somewhere related to that.
Modified: sandbox/sdlime/rfc-77/maplayer.c
===================================================================
--- sandbox/sdlime/rfc-77/maplayer.c 2012-01-23 04:43:40 UTC (rev 13009)
+++ sandbox/sdlime/rfc-77/maplayer.c 2012-01-23 13:09:28 UTC (rev 13010)
@@ -512,7 +512,7 @@
for(l=0; l<layer->class[i]->numlabels; l++) {
nt += layer->class[i]->labels[l]->numbindings;
- for(k=0; k<layer->class[i]->labels[l]->numstyles; k++) {
+ for(j=0; j<layer->class[i]->labels[l]->numstyles; j++) {
if(layer->class[i]->labels[l]->styles[j]->rangeitem) nt++;
nt += layer->class[i]->labels[l]->styles[j]->numbindings;
if(layer->class[i]->labels[l]->styles[j]->_geomtransform.type == MS_GEOMTRANSFORM_EXPRESSION)
More information about the mapserver-commits
mailing list