diff options
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp b/xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp index 2b0f3dc7ea..d18b84aff8 100644 --- a/xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp +++ b/xfa/src/fxfa/src/app/xfa_ffcheckbutton.cpp @@ -87,13 +87,13 @@ FX_BOOL CXFA_FFCheckButton::PerformLayout() { CXFA_Margin mgWidget = m_pDataAcc->GetMargin(); CFX_RectF rtWidget; GetRectWithoutRotate(rtWidget); - if (mgWidget.IsExistInXML()) { + if (mgWidget) { XFA_RectWidthoutMargin(rtWidget, mgWidget); } int32_t iCapPlacement = -1; FX_FLOAT fCapReserve = 0; CXFA_Caption caption = m_pDataAcc->GetCaption(); - if (caption.IsExistInXML() && caption.GetPresence()) { + if (caption && caption.GetPresence()) { m_rtCaption.Set(rtWidget.left, rtWidget.top, rtWidget.width, rtWidget.height); iCapPlacement = caption.GetPlacementType(); @@ -163,7 +163,7 @@ FX_BOOL CXFA_FFCheckButton::PerformLayout() { CXFA_Border borderUI = m_pDataAcc->GetUIBorder(); if (borderUI) { CXFA_Margin margin = borderUI.GetMargin(); - if (margin.IsExistInXML()) { + if (margin) { XFA_RectWidthoutMargin(m_rtUI, margin); } } |