summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/awt/j2d/IntegerGraphicsState.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/awt/j2d/IntegerGraphicsState.java')
-rw-r--r--libjava/gnu/awt/j2d/IntegerGraphicsState.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/gnu/awt/j2d/IntegerGraphicsState.java b/libjava/gnu/awt/j2d/IntegerGraphicsState.java
index 923720e06ae..90a1a4d2ab5 100644
--- a/libjava/gnu/awt/j2d/IntegerGraphicsState.java
+++ b/libjava/gnu/awt/j2d/IntegerGraphicsState.java
@@ -69,7 +69,6 @@ public class IntegerGraphicsState extends AbstractGraphicsState
super.dispose();
}
-
// -------- Graphics methods:
public void setColor(Color color)
@@ -101,7 +100,7 @@ public class IntegerGraphicsState extends AbstractGraphicsState
{
if (clip instanceof Rectangle)
{
- Rectangle clipRect = (Rectangle) clip.clone();
+ Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone();
clipRect.x += tx;
clipRect.y += ty;
OpenPOWER on IntegriCloud