File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -192,9 +192,11 @@ protected boolean setForStroke(Graphics g) {
192192 Integer width = getValue (DrawAttr .STROKE_WIDTH );
193193 if (width != null && width .intValue () > 0 ) {
194194 Color color = getValue (DrawAttr .STROKE_COLOR );
195- if (color != null && color .getAlpha () == 0 ) {
195+ if (color != null && color .getAlpha () == 0 && color . getRGB () != 0 ) {
196196 return false ;
197- } else {
197+ }
198+ else {
199+ color = new Color (190 , 190 , 190 );
198200 GraphicsUtil .switchToWidth (g , width .intValue ());
199201 if (color != null ) g .setColor (color );
200202 return true ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public static AbstractCanvasObject createShape(Element elt) {
6969 }
7070 if (attrs .contains (DrawAttr .FILL_COLOR )) {
7171 String color = elt .getAttribute ("fill" );
72- if (color .equals ("" )) color = "#000000 " ;
72+ if (color .equals ("" )) color = "#BEBEBE " ;
7373 String opacity = elt .getAttribute ("fill-opacity" );
7474 if (!color .equals ("none" )) {
7575 ret .setValue (DrawAttr .FILL_COLOR , getColor (color , opacity ));
You can’t perform that action at this time.
0 commit comments