Permalink
Browse files

Fix failed assertion with non-existant svg symbols (#4899)

  • Loading branch information...
1 parent 7b86158 commit 83e4ee86a5415644b0ab10472f03cc2d239c6268 @fblackburn fblackburn committed with tbonfort Mar 29, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 mapcairo.c
View
@@ -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;

0 comments on commit 83e4ee8

Please sign in to comment.