summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_containerlayoutitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_containerlayoutitem.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_containerlayoutitem.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_containerlayoutitem.cpp b/xfa/fxfa/parser/cxfa_containerlayoutitem.cpp
index 07203caa85..28c0c2eedd 100644
--- a/xfa/fxfa/parser/cxfa_containerlayoutitem.cpp
+++ b/xfa/fxfa/parser/cxfa_containerlayoutitem.cpp
@@ -31,10 +31,13 @@ CFX_SizeF CXFA_ContainerLayoutItem::GetPageSize() const {
if (!pMedium)
return size;
- size = CFX_SizeF(
- pMedium->JSNode()->GetMeasure(XFA_Attribute::Short).ToUnit(XFA_Unit::Pt),
- pMedium->JSNode()->GetMeasure(XFA_Attribute::Long).ToUnit(XFA_Unit::Pt));
- if (pMedium->JSNode()->GetEnum(XFA_Attribute::Orientation) ==
+ size = CFX_SizeF(pMedium->JSObject()
+ ->GetMeasure(XFA_Attribute::Short)
+ .ToUnit(XFA_Unit::Pt),
+ pMedium->JSObject()
+ ->GetMeasure(XFA_Attribute::Long)
+ .ToUnit(XFA_Unit::Pt));
+ if (pMedium->JSObject()->GetEnum(XFA_Attribute::Orientation) ==
XFA_AttributeEnum::Landscape) {
size = CFX_SizeF(size.height, size.width);
}