summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-12 16:59:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-12 20:00:28 +0200
commit970ddaacea9591f01276518bebfd8285928785f1 (patch)
treef37116044c7b3d9fddb6d5ee5a9f560e84dd08ec /vcl/unx
parent41d06c9ca1f4381691d822cbf97bdb17eda716fa (diff)
m_pEntry may be null
Change-Id: I704ff31906437f0d998f3089cf1df43d29187e0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98464 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index f2b3b8fb310a..f49dba8e5489 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -14266,7 +14266,9 @@ public:
virtual bool has_focus() const override
{
- return gtk_widget_has_focus(m_pToggleButton) || gtk_widget_has_focus(m_pEntry) ||
+ if (m_pEntry && gtk_widget_has_focus(m_pEntry))
+ return true;
+ return gtk_widget_has_focus(m_pToggleButton) ||
gtk_widget_has_focus(GTK_WIDGET(m_pOverlayButton)) ||
gtk_widget_has_focus(GTK_WIDGET(m_pTreeView)) || GtkInstanceWidget::has_focus();
}