summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_fwltheme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_fwltheme.cpp')
-rw-r--r--xfa/fxfa/cxfa_fwltheme.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_fwltheme.cpp b/xfa/fxfa/cxfa_fwltheme.cpp
index f27b5ddef5..61c4e25f1d 100644
--- a/xfa/fxfa/cxfa_fwltheme.cpp
+++ b/xfa/fxfa/cxfa_fwltheme.cpp
@@ -154,10 +154,10 @@ CFX_RectF CXFA_FWLTheme::GetUIMargin(CFWL_ThemePart* pThemePart) const {
CXFA_LayoutItem* pItem = pWidget;
CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc();
rect = pWidgetAcc->GetUIMargin();
- if (CXFA_Para para = pWidgetAcc->GetPara()) {
- rect.left += para.GetMarginLeft();
+ if (CXFA_ParaData paraData = pWidgetAcc->GetParaData()) {
+ rect.left += paraData.GetMarginLeft();
if (pWidgetAcc->IsMultiLine())
- rect.width += para.GetMarginRight();
+ rect.width += paraData.GetMarginRight();
}
if (!pItem->GetPrev()) {
if (pItem->GetNext())
@@ -212,9 +212,9 @@ CFX_SizeF CXFA_FWLTheme::GetSpaceAboveBelow(CFWL_ThemePart* pThemePart) const {
CFX_SizeF sizeAboveBelow;
if (CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) {
CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc();
- if (CXFA_Para para = pWidgetAcc->GetPara()) {
- sizeAboveBelow.width = para.GetSpaceAbove();
- sizeAboveBelow.height = para.GetSpaceBelow();
+ if (CXFA_ParaData paraData = pWidgetAcc->GetParaData()) {
+ sizeAboveBelow.width = paraData.GetSpaceAbove();
+ sizeAboveBelow.height = paraData.GetSpaceBelow();
}
}
return sizeAboveBelow;