Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1337 - trunk/src/org/tigris/gef/presentation/FigRRect.java

gef
Discussion topic

Back to topic list

svn commit: r1337 - trunk/src/org/tigris/gef/presentation/FigRRect.java

Author bobtarling
Full name Bob Tarling
Date 2011-08-16 01:11:49 PDT
Message Author: bobtarling
Date: 2011-08-16 01:11:48-0700
New Revision: 1337

Modified:
   trunk/src/org/tigris​/gef/presentation/Fi​gRRect.java

Log:
Patch contributed by Laurant Braud

Fix fill color for SVG in rounded rectangles

Modified: trunk/src/org/tigris​/gef/presentation/Fi​gRRect.java
Url: http://gef.tigris.or​g/source/browse/gef/​trunk/src/org/tigris​/gef/presentation/Fi​gRRect.java?view=dif​f&pathrev=1337​&r1=1336&r2=13​37
====================​====================​====================​==================
--- trunk/src/org/tigris​/gef/presentation/Fi​gRRect.java (original)
+++ trunk/src/org/tigris​/gef/presentation/Fi​gRRect.java 2011-08-16 01:11:48-0700
@@ -100,15 +100,19 @@
         // assert _lineWidth == 0 || _lineWidth == 1 || _lineColor == null
         // assert filled && filledColor != null
         // Do the actual fill color
- g.setColor(_fillColor);
- g.fillRoundRect(_x, _y, _w, _h, _radius, _radius);
-
+ int delta = 0;
         if (_lineColor != null && _lineWidth == 1) {
             // If we're filled with a narrow border then draw
             // the border over the already filled area.
             g.setColor(_lineColor);
             g.drawRoundRect(_x, _y, _w, _h, _radius, _radius);
+ delta = 1;
         }
+
+ g.setColor(_fillColor);
+ g.fillRoundRect(_x+delta, _y+delta, _w-delta*2, _h-delta*2, _radius, _radius);
+
+
     }
 
     /**

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r1337 - trunk/src/org/tigris/gef/presentation/FigRRect.java bobtarling Bob Tarling 2011-08-16 01:11:49 PDT
Messages per page: