diff options
Diffstat (limited to 'src/org/apache/fop/fo/flow/DisplayGraphic.java')
-rw-r--r-- | src/org/apache/fop/fo/flow/DisplayGraphic.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/flow/DisplayGraphic.java b/src/org/apache/fop/fo/flow/DisplayGraphic.java index 327d42b01..b480ff833 100644 --- a/src/org/apache/fop/fo/flow/DisplayGraphic.java +++ b/src/org/apache/fop/fo/flow/DisplayGraphic.java @@ -54,6 +54,7 @@ package org.apache.fop.fo.flow; // FOP import org.apache.fop.fo.*; +import org.apache.fop.messaging.MessageHandler; import org.apache.fop.fo.properties.*; import org.apache.fop.layout.Area; import org.apache.fop.layout.BlockArea; @@ -169,7 +170,7 @@ public class DisplayGraphic extends FObj { } else if (width == 0) { width = (int) ((imgWidth * ((double) height)) / imgHeight); } -//System.err.println("DisplayGraphic: imgW=" + imgWidth + " imgH=" + imgHeight + " w=" + width + " h=" + height); +//MessageHandler.errorln("DisplayGraphic: imgW=" + imgWidth + " imgH=" + imgHeight + " w=" + width + " h=" + height); } if (area.spaceLeft() < (height + spaceBefore)) { @@ -208,10 +209,10 @@ public class DisplayGraphic extends FObj { } catch (MalformedURLException urlex) { // bad URL -System.err.println("Error while creating area : " + urlex.getMessage()); +MessageHandler.errorln("Error while creating area : " + urlex.getMessage()); } catch (FopImageException imgex) { // image error -System.err.println("Error while creating area : " + imgex.getMessage()); +MessageHandler.errorln("Error while creating area : " + imgex.getMessage()); } if (area instanceof BlockArea) { |