diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-10-19 11:54:09 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-10-19 18:28:38 +0200 |
commit | 5ed218d4ec26042f87b64a59c60373f35de962a7 (patch) | |
tree | 5853214d834280ceb08590a26dd0cef5116f15f5 | |
parent | 5a79b5abea57313ff568e1291da2179ba7ac2322 (diff) |
tdf#128241: fix crash when opening print dialog (gtk3 only)
See bt here:
https://bugs.documentfoundation.org/attachment.cgi?id=155131
Change-Id: Ibd220f6f41b6cee6217465c534fac1af4bb2b51b
Reviewed-on: https://gerrit.libreoffice.org/81123
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 5837e008af38..0d8f4d30b7c1 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -5349,7 +5349,7 @@ private: { const GtkWidget* pTabWidget = gtk_notebook_get_tab_label(pNotebook, gtk_notebook_get_nth_page(pNotebook, i)); const gchar* pStr = gtk_buildable_get_name(GTK_BUILDABLE(pTabWidget)); - if (strcmp(pStr, rIdent.getStr()) == 0) + if (pStr && strcmp(pStr, rIdent.getStr()) == 0) return i; } return -1; |