summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.cpp b/xfa/fxfa/cxfa_ffwidget.cpp
index 6971d03df0..5cfa836aed 100644
--- a/xfa/fxfa/cxfa_ffwidget.cpp
+++ b/xfa/fxfa/cxfa_ffwidget.cpp
@@ -978,10 +978,11 @@ CXFA_WidgetAcc* CXFA_FFWidget::GetDataAcc() {
}
bool CXFA_FFWidget::GetToolTip(WideString& wsToolTip) {
- if (CXFA_Assist assist = m_pDataAcc->GetAssist()) {
- if (CXFA_ToolTip toolTip = assist.GetToolTip()) {
+ CXFA_AssistData assist = m_pDataAcc->GetAssistData();
+ if (assist) {
+ CXFA_ToolTip toolTip = assist.GetToolTip();
+ if (toolTip)
return toolTip.GetTip(wsToolTip);
- }
}
return GetCaptionText(wsToolTip);
}