Skip to content

Commit

Permalink
fix segfault on legends with keyimage (#4808)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Nov 20, 2013
1 parent 92a1cac commit bdaf0cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion maplegend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()");
Expand Down
2 changes: 1 addition & 1 deletion msautotest
Submodule msautotest updated from 86a881 to e04280

0 comments on commit bdaf0cc

Please sign in to comment.