Permalink
Browse files

fix segfault on legends with keyimage (#4808)

  • Loading branch information...
1 parent 92a1cac commit bdaf0cce11db95c4b9007556142c8c5b4a30424a @tbonfort tbonfort committed Nov 20, 2013
Showing with 1 addition and 2 deletions.
  1. +0 −1 maplegend.c
  2. +1 −1 msautotest
View
@@ -201,7 +201,6 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
int symbolNum;
styleObj imgStyle;
symbolObj *symbol=NULL;
- for(symbolNum=0; symbolNum<theclass->numstyles; symbolNum++)
symbolNum = msAddImageSymbol(&(map->symbolset), msBuildPath(szPath, map->mappath, theclass->keyimage));
if(symbolNum == -1) {
msSetError(MS_GDERR, "Failed to open legend key image", "msCreateLegendIcon()");

0 comments on commit bdaf0cc

Please sign in to comment.