xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r603271 - /xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
Date Tue, 11 Dec 2007 15:24:09 GMT
Author: jeremias
Date: Tue Dec 11 07:24:08 2007
New Revision: 603271

URL: http://svn.apache.org/viewvc?rev=603271&view=rev
Log:
Bugfix: Only generate the FixedLength if there is baseline information.

Modified:
    xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java

Modified: xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java?rev=603271&r1=603270&r2=603271&view=diff
==============================================================================
--- xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
(original)
+++ xmlgraphics/fop/branches/Temp_ImagePackageRedesign/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
Tue Dec 11 07:24:08 2007
@@ -84,8 +84,10 @@
         if (info != null) {
             this.intrinsicWidth = info.getSize().getWidthMpt();
             this.intrinsicHeight = info.getSize().getHeightMpt();
-            this.intrinsicAlignmentAdjust = new FixedLength(
-                    -info.getSize().getBaselinePositionFromBottom());
+            int baseline = info.getSize().getBaselinePositionFromBottom();
+            if (baseline != 0) {
+                this.intrinsicAlignmentAdjust = new FixedLength(-baseline);
+            }
         }
         //TODO Report to caller so he can decide to throw an exception
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message