Permalink
Browse files

Avoid infinite loop during labeling with empty text (#5167)

  • Loading branch information...
mkofahl authored and tbonfort committed Sep 21, 2015
1 parent effcd44 commit c00e84a36a83d46f6aade94560de9f606dde630b
Showing with 1 addition and 1 deletion.
  1. +1 −1 maplabel.c
View
@@ -328,7 +328,7 @@ int msAddLabelGroup(mapObj *map, imageObj *image, int layerindex, int classindex
}
annotext = msShapeGetLabelAnnotation(layerPtr,shape,lbl);
if(!annotext) {
- for(s=0;s<lbl->numstyles;l++) {
+ for(s=0;s<lbl->numstyles;s++) {
if(lbl->styles[s]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOINT)
break; /* we have a "symbol only label, so we shouldn't skip this label */
}

0 comments on commit c00e84a

Please sign in to comment.