]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
FOP-2160: Fix NPE when rl writing mode is used in certain contexts.
authorGlenn Adams <gadams@apache.org>
Sun, 30 Dec 2012 04:42:43 +0000 (04:42 +0000)
committerGlenn Adams <gadams@apache.org>
Sun, 30 Dec 2012 04:42:43 +0000 (04:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1426888 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/inline/InlineArea.java
src/java/org/apache/fop/complexscripts/bidi/UnflattenProcessor.java
status.xml

index 37930f3ba2ff4348963ee6aa2ba56154769a9de8..d92ea4f4fee6a0676b043434275a8d763845c9cf 100644 (file)
@@ -136,6 +136,14 @@ public class InlineArea extends Area {
         adjustingInfo = new InlineAdjustingInfo(stretch, shrink, adjustment);
     }
 
+    /**
+     * Sets the adjustment information from an existing object
+     * @param adjustingInfo the existing adjustment object
+     */
+    public void setAdjustingInfo(InlineAdjustingInfo adjustingInfo) {
+        this.adjustingInfo = adjustingInfo;
+    }
+
     /**
      * Modify the adjustment value in the adjustment information object
      * @param adjustment the new adjustment value
index 864c2930cfaf004e6d5be316f9d452fc8fee7d93..eb842a77151b8aa7d4e24be9f6d58d37b22272da 100644 (file)
@@ -279,6 +279,7 @@ class UnflattenProcessor {
         assert f != null;
         fc.setIPD ( f.getIPD() );
         fc.setUnitWidth ( f.getUnitWidth() );
+        fc.setAdjustingInfo( f.getAdjustingInfo() );
     }
     private InlineParent generateInlineContainer0 ( InlineParent i ) {
         InlineParent ic = new InlineParent();
index 3511dfc7cc333dbab8ac11031ff57b8fb53a8e0e..cd7feb080db8b8461d5c016a6ff57f2ee55412de 100644 (file)
@@ -59,6 +59,9 @@
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Layout" dev="GA" type="fix" fixes-bug="FOP-2160" due-to="Robert Meyer">
+        Fix NPE when rl writing mode is used in certain contexts.
+      </action>
       <action context="Layout" dev="GA" type="fix" fixes-bug="FOP-2178">
         Fix incomplete kerning when complex script features are enabled.
       </action>