diff options
Diffstat (limited to 'src/org/apache/fop/fo/flow/InlineGraphic.java')
-rw-r--r-- | src/org/apache/fop/fo/flow/InlineGraphic.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/flow/InlineGraphic.java b/src/org/apache/fop/fo/flow/InlineGraphic.java index 4b3073cb2..3a721d879 100644 --- a/src/org/apache/fop/fo/flow/InlineGraphic.java +++ b/src/org/apache/fop/fo/flow/InlineGraphic.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; @@ -172,7 +173,7 @@ public class InlineGraphic 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)) { @@ -211,10 +212,10 @@ public class InlineGraphic 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) { |