diff --git a/src/svgdraw.c b/src/svgdraw.c index 44e0229a..601de7da 100644 --- a/src/svgdraw.c +++ b/src/svgdraw.c @@ -994,8 +994,8 @@ void svg_draw(void) * 2 : solid fill * fill_type[i]: * 0 : no fill - * 1 : solid fill - * 2 : patterned (stippled) fill + * 1 : patterned (stippled) fill + * 2 : solid fill */ for(i=0;ifill_pattern == 2 && xctx->fill_type[i]) fprintf(fd, " fill: #%02x%02x%02x;\n", svg_colors[i].red, svg_colors[i].green, svg_colors[i].blue); - else if( xctx->fill_pattern && xctx->fill_type[i] == 1) + else if( xctx->fill_pattern && xctx->fill_type[i] == 2) fprintf(fd, " fill: #%02x%02x%02x;\n", svg_colors[i].red, svg_colors[i].green, svg_colors[i].blue); else fprintf(fd, " fill: #%02x%02x%02x; fill-opacity: 0.5;\n",