diff options
Diffstat (limited to 'xfa/fxfa/cxfa_widgetacc.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_widgetacc.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/cxfa_widgetacc.cpp b/xfa/fxfa/cxfa_widgetacc.cpp index 7453a145b3..681ecbf0f8 100644 --- a/xfa/fxfa/cxfa_widgetacc.cpp +++ b/xfa/fxfa/cxfa_widgetacc.cpp @@ -781,9 +781,9 @@ bool CXFA_WidgetAcc::CalculateWidgetAutoSize(CFX_SizeF& size) { size.height += fTopInset + fBottomInset; } - CXFA_Para para = GetPara(); - if (para) - size.width += para.GetMarginLeft() + para.GetTextIndent(); + CXFA_ParaData paraData = GetParaData(); + if (paraData) + size.width += paraData.GetMarginLeft() + paraData.GetTextIndent(); float fVal = 0; float fMin = 0; @@ -1245,11 +1245,11 @@ bool CXFA_WidgetAcc::FindSplitPos(int32_t iBlockIndex, float& fCalcHeight) { if (fHeight > 0.1f && iBlockIndex == 0) { fStartOffset = fTopInset; fHeight -= (fTopInset + fBottomInset); - if (CXFA_Para para = GetPara()) { - fSpaceAbove = para.GetSpaceAbove(); - float fSpaceBelow = para.GetSpaceBelow(); + if (CXFA_ParaData paraData = GetParaData()) { + fSpaceAbove = paraData.GetSpaceAbove(); + float fSpaceBelow = paraData.GetSpaceBelow(); fHeight -= (fSpaceAbove + fSpaceBelow); - switch (para.GetVerticalAlign()) { + switch (paraData.GetVerticalAlign()) { case XFA_ATTRIBUTEENUM_Top: fStartOffset += fSpaceAbove; break; @@ -1512,8 +1512,8 @@ float CXFA_WidgetAcc::GetFontSize() { float CXFA_WidgetAcc::GetLineHeight() { float fLineHeight = 0; - if (CXFA_Para para = GetPara()) - fLineHeight = para.GetLineHeight(); + if (CXFA_ParaData paraData = GetParaData()) + fLineHeight = paraData.GetLineHeight(); if (fLineHeight < 1) fLineHeight = GetFontSize() * 1.2f; return fLineHeight; |