aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorManuel Mall <manuel@apache.org>2005-11-09 11:49:43 +0000
committerManuel Mall <manuel@apache.org>2005-11-09 11:49:43 +0000
commitd9aaf8603b6f29c1ad5e273d801ce8202d5b5134 (patch)
tree583eb69607e33954f0ab26a371a1a13c0ccb7389 /src
parent79d4c53b71d2787760e64df2d59af40fbb4fdcac (diff)
downloadxmlgraphics-fop-d9aaf8603b6f29c1ad5e273d801ce8202d5b5134.tar.gz
xmlgraphics-fop-d9aaf8603b6f29c1ad5e273d801ce8202d5b5134.zip
Fix for Bug 36928 - refresh cached property value if explicitly set twice which can happen for font-size
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332024 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rwxr-xr-xsrc/java/org/apache/fop/fo/StaticPropertyList.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/StaticPropertyList.java b/src/java/org/apache/fop/fo/StaticPropertyList.java
index 37699847a..a8455ee9e 100755
--- a/src/java/org/apache/fop/fo/StaticPropertyList.java
+++ b/src/java/org/apache/fop/fo/StaticPropertyList.java
@@ -53,6 +53,9 @@ public class StaticPropertyList extends PropertyList {
*/
public void putExplicit(int propId, Property value) {
explicit[propId] = value;
+ if (values[propId] != null) { // if the cached value is set overwrite it
+ values[propId] = value;
+ }
}
/**