Skip to content

Commit

Permalink
Fix failed assertion with non-existant svg symbols (#4899)
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Blackburn authored and tbonfort committed Mar 29, 2014
1 parent 7b86158 commit 83e4ee8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mapcairo.c
Expand Up @@ -1133,6 +1133,7 @@ int msPreloadSVGSymbol(symbolObj *symbol)
cache->svgc = rsvg_handle_new_from_file(symbol->full_pixmap_path,NULL);
if(!cache->svgc) {
msSetError(MS_RENDERERERR,"failed to load svg file %s", "msPreloadSVGSymbol()", symbol->full_pixmap_path);
return MS_FAILURE;
}
rsvg_handle_get_dimensions_sub (cache->svgc, &dim, NULL);
symbol->sizex = dim.width;
Expand Down

0 comments on commit 83e4ee8

Please sign in to comment.