diff options
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp b/xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp index efbde646a6..2b9f1eeb95 100644 --- a/xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp +++ b/xfa/src/fxfa/src/app/xfa_ffpushbutton.cpp @@ -122,8 +122,7 @@ FX_BOOL CXFA_FFPushButton::PerformLayout() { } FX_FLOAT CXFA_FFPushButton::GetLineWidth() { CXFA_Border border = m_pDataAcc->GetBorder(); - if (border.IsExistInXML() && - (border.GetPresence() == XFA_ATTRIBUTEENUM_Visible)) { + if (border && border.GetPresence() == XFA_ATTRIBUTEENUM_Visible) { CXFA_Edge edge = border.GetEdge(0); return edge.GetThickness(); } @@ -137,8 +136,7 @@ FX_ARGB CXFA_FFPushButton::GetFillColor() { } void CXFA_FFPushButton::LoadHighlightCaption() { CXFA_Caption caption = m_pDataAcc->GetCaption(); - if (caption.IsExistInXML() && - caption.GetPresence() != XFA_ATTRIBUTEENUM_Hidden) { + if (caption && caption.GetPresence() != XFA_ATTRIBUTEENUM_Hidden) { { CFX_WideString wsRollover; FX_BOOL bRichText; @@ -175,8 +173,7 @@ void CXFA_FFPushButton::RenderHighlightCaption(CFX_Graphics* pGS, CFX_Matrix* pMatrix) { CXFA_TextLayout* pCapTextLayout = m_pDataAcc->GetCaptionTextLayout(); CXFA_Caption caption = m_pDataAcc->GetCaption(); - if (caption.IsExistInXML() && - caption.GetPresence() == XFA_ATTRIBUTEENUM_Visible) { + if (caption && caption.GetPresence() == XFA_ATTRIBUTEENUM_Visible) { CFX_RenderDevice* pRenderDevice = pGS->GetRenderDevice(); CFX_RectF rtWidget; GetRectWithoutRotate(rtWidget); |