diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java b/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java index be32f589106b..472ae81c6340 100644 --- a/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java +++ b/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java @@ -84,12 +84,10 @@ public class FillAndLineStyleDemo new Size( 15000, 12000 ), "com.sun.star.drawing.RectangleShape" ); - XShapes xShapes = (XShapes) - UnoRuntime.queryInterface( XShapes.class, xPage ); + XShapes xShapes = UnoRuntime.queryInterface( XShapes.class, xPage ); xShapes.add( xRectangle ); - XPropertySet xPropSet = (XPropertySet) - UnoRuntime.queryInterface( XPropertySet.class, xRectangle ); + XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, xRectangle ); /* apply a gradient fill style that goes from top left to bottom right and is changing its color from green to yellow */ |