summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/parser/cxfa_widgetdata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp
index 4544e2eb51..4c8257a039 100644
--- a/xfa/fxfa/parser/cxfa_widgetdata.cpp
+++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp
@@ -392,7 +392,8 @@ CFX_RectF CXFA_WidgetData::GetUIMargin() {
left = GetEdgeThickness(strokes, bVisible, 3);
}
}
- return CFX_RectF(*left, *top, *right, *bottom);
+ return CFX_RectF(left.value_or(0.0), top.value_or(0.0), right.value_or(0.0),
+ bottom.value_or(0.0));
}
XFA_ATTRIBUTEENUM CXFA_WidgetData::GetButtonHighlight() {