Browse Source

Merge branch '1.9.x'

master
Stefan Bodewig 7 years ago
parent
commit
acd33fa8df
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/optional/image/Rectangle.java

+ 1
- 1
src/main/org/apache/tools/ant/types/optional/image/Rectangle.java View File

@@ -105,11 +105,11 @@ public class Rectangle extends BasicShape implements DrawOperation {
PlanarImage img = ((DrawOperation) instr).executeDrawOperation();
graphics.drawImage(img.getAsBufferedImage(), null, 0, 0);
} else if (instr instanceof TransformOperation) {
graphics = (Graphics2D) bi.getGraphics();
PlanarImage image
= ((TransformOperation) instr)
.executeTransformOperation(PlanarImage.wrapRenderedImage(bi));
bi = image.getAsBufferedImage();
graphics = bi.createGraphics();
}
}
return PlanarImage.wrapRenderedImage(bi);


Loading…
Cancel
Save