From cbe4125cd6fb95868d1b7b1c4d2d92eccb03a249 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Fri, 9 Jan 2004 03:05:55 +0000 Subject: [PATCH] Bug 25990 (Patch by Finn Bock) errors in String->int conversions found. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197148 13f79535-47bb-0310-9956-ffa450edef68 --- src/codegen/properties.xsl | 10 +++++++++- src/java/org/apache/fop/fo/PropertyList.java | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/codegen/properties.xsl b/src/codegen/properties.xsl index a787e93e2..1c3a6fd98 100644 --- a/src/codegen/properties.xsl +++ b/src/codegen/properties.xsl @@ -1003,7 +1003,15 @@ public class - propertyList.wmMap(Constants.PR_ + + + parentFO.propertyList + + + propertyList + + + .wmMap(Constants.PR_ diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java index 0bfbf69ea..343481ded 100644 --- a/src/java/org/apache/fop/fo/PropertyList.java +++ b/src/java/org/apache/fop/fo/PropertyList.java @@ -385,8 +385,8 @@ public class PropertyList extends HashMap { public int wmMap(int lrtb, int rltb, int tbrl) { switch (writingMode) { case WritingMode.LR_TB: return lrtb; - case WritingMode.RL_TB: return lrtb; - case WritingMode.TB_RL: return lrtb; + case WritingMode.RL_TB: return rltb; + case WritingMode.TB_RL: return tbrl; } return -1; } -- 2.39.5