diff options
Diffstat (limited to 'xfa/fxfa/parser/cxfa_widgetdata.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_widgetdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index eee383ba63..e44c77d061 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -1270,7 +1270,7 @@ bool CXFA_WidgetData::GetBarcodeAttribute_ModuleWidth(int32_t* val) { CXFA_Node* pUIChild = GetUIChild(); CXFA_Measurement mModuleWidthHeight; if (pUIChild->JSNode()->TryMeasure(XFA_ATTRIBUTE_ModuleWidth, - mModuleWidthHeight)) { + mModuleWidthHeight, true)) { *val = static_cast<int32_t>(mModuleWidthHeight.ToUnit(XFA_UNIT_Pt)); return true; } @@ -1281,7 +1281,7 @@ bool CXFA_WidgetData::GetBarcodeAttribute_ModuleHeight(int32_t* val) { CXFA_Node* pUIChild = GetUIChild(); CXFA_Measurement mModuleWidthHeight; if (pUIChild->JSNode()->TryMeasure(XFA_ATTRIBUTE_ModuleHeight, - mModuleWidthHeight)) { + mModuleWidthHeight, true)) { *val = static_cast<int32_t>(mModuleWidthHeight.ToUnit(XFA_UNIT_Pt)); return true; } |