]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: Don't use getWidth/Height() from superclass as this is accessing the original...
authorJeremias Maerki <jeremias@apache.org>
Wed, 6 Aug 2008 19:37:18 +0000 (19:37 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 6 Aug 2008 19:37:18 +0000 (19:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@683383 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/ImageRenderedAdapter.java

index e8988244f17e2843e51ab684b0cdce1d735a58f0..5ddcd06c693a7abc46b0dc14bbc733cb3d5984a9 100644 (file)
@@ -75,6 +75,18 @@ public class ImageRenderedAdapter extends AbstractImageAdapter {
         return ((ImageRendered)this.image);
     }
 
+    /** {@inheritDoc} */
+    public int getWidth() {
+        RenderedImage ri = getImage().getRenderedImage();
+        return ri.getWidth();
+    }
+
+    /** {@inheritDoc} */
+    public int getHeight() {
+        RenderedImage ri = getImage().getRenderedImage();
+        return ri.getHeight();
+    }
+
     private ColorModel getEffectiveColorModel() {
         return encodingHelper.getEncodedColorModel();
     }