aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-29 09:17:34 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-29 09:17:34 +0000
commit9ac1e96a99a6e2f02d938d0e939e1837b0c73207 (patch)
tree05183c745d19af7f7941c13dec08cc412e2ecdb6 /src/java/org/apache/fop/layoutmgr
parentc79639a5e7e393fb36de72c9271217158858d848 (diff)
downloadxmlgraphics-fop-9ac1e96a99a6e2f02d938d0e939e1837b0c73207.tar.gz
xmlgraphics-fop-9ac1e96a99a6e2f02d938d0e939e1837b0c73207.zip
More properties implement in the property subsystem.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/ExternalGraphicLayoutManager.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/ExternalGraphicLayoutManager.java b/src/java/org/apache/fop/layoutmgr/ExternalGraphicLayoutManager.java
index 0b0c9073d..8b29cbcd9 100644
--- a/src/java/org/apache/fop/layoutmgr/ExternalGraphicLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/ExternalGraphicLayoutManager.java
@@ -99,21 +99,23 @@ public class ExternalGraphicLayoutManager extends LeafNodeLayoutManager {
int cheight = -1;
Length ch = fobj.getContentHeight();
if (ch.getEnum() != AUTO) {
- /*if (ch.scaleToFit()) {
+ if (ch.getEnum() == SCALE_TO_FIT) {
if (viewHeight != -1) {
cheight = viewHeight;
}
- } else {*/
- cheight = ch.getValue();
+ } else {
+ cheight = ch.getValue();
+ }
}
Length cw = fobj.getContentWidth();
if (cw.getEnum() != AUTO) {
- /*if (cw.scaleToFit()) {
+ if (cw.getEnum() == SCALE_TO_FIT) {
if (viewWidth != -1) {
cwidth = viewWidth;
}
- } else {*/
- cwidth = cw.getValue();
+ } else {
+ cwidth = cw.getValue();
+ }
}
int scaling = fobj.getScaling();