Permalink
Browse files

avoid rendering symbols with 0 scale (#4654)

sending in symbols with a 0 zero scale seems to mess up cairo, even
though our use of cairo_save/cairo_restore should have taken care
of this.
  • Loading branch information...
1 parent 2391e97 commit e3bd202852abaf892cb2d4516f3ff1fd2c9be489 @tbonfort tbonfort committed Jul 23, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 maprendering.c
View
@@ -833,13 +833,15 @@ int msDrawMarkerSymbol(symbolSetObj *symbolset,imageObj *image, pointObj *p, sty
break;
}
- s.style = style;
computeSymbolStyle(&s,style,symbol,scalefactor,image->resolutionfactor);
s.style = style;
if (!s.color && !s.outlinecolor && symbol->type != MS_SYMBOL_PIXMAP &&
symbol->type != MS_SYMBOL_SVG) {
return MS_SUCCESS; // nothing to do if no color, except for pixmap symbols
}
+ if(s.scale == 0) {
+ return MS_SUCCESS;
+ }

0 comments on commit e3bd202

Please sign in to comment.