diff --git a/src/org/graphstream/ui/swing/renderer/shape/swing/shapePart/Fillable.java b/src/org/graphstream/ui/swing/renderer/shape/swing/shapePart/Fillable.java index 680f037..2a5fb63 100644 --- a/src/org/graphstream/ui/swing/renderer/shape/swing/shapePart/Fillable.java +++ b/src/org/graphstream/ui/swing/renderer/shape/swing/shapePart/Fillable.java @@ -103,7 +103,7 @@ public void configureFillableForGroup(Backend bck, Style style, DefaultCamera2D public void configureFillableForElement( Style style, DefaultCamera2D camera, GraphicElement element ) { if( style.getFillMode() == StyleConstants.FillMode.DYN_PLAIN && element != null ) { if ( element.getAttribute( "ui.color" ) instanceof Number ) { - theFillPercent = (float)((Number)element.getAttribute( "ui.color" )); + theFillPercent = ((Number)element.getAttribute( "ui.color" )).floatValue(); theFillColor = null; } else if ( element.getAttribute( "ui.color" ) instanceof Color ) { @@ -119,4 +119,4 @@ else if ( element.getAttribute( "ui.color" ) instanceof Color ) { theFillPercent = 0; } } -} \ No newline at end of file +}