diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-22 13:51:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-23 17:32:34 +0200 |
commit | caf72fd8a19d5544bfc86fba1306b4066c3c2d20 (patch) | |
tree | 916f6343657393ab892ecd9a716ab42716be1280 /vcl | |
parent | 8b7f8f54a8ee35df98f8107a42981d3a0a659541 (diff) |
weld FloatingContour
Change-Id: I055f01d2ce462009986801d4a603b0b72b1a621c
Reviewed-on: https://gerrit.libreoffice.org/72787
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 5a51f7074373..6ade98fcd25e 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -5353,9 +5353,12 @@ private: static void collect(GtkWidget* pItem, gpointer widget) { - GtkToolButton* pToolItem = GTK_TOOL_BUTTON(pItem); - GtkInstanceToolbar* pThis = static_cast<GtkInstanceToolbar*>(widget); - pThis->add_to_map(pToolItem); + if (GTK_IS_TOOL_BUTTON(pItem)) + { + GtkToolButton* pToolItem = GTK_TOOL_BUTTON(pItem); + GtkInstanceToolbar* pThis = static_cast<GtkInstanceToolbar*>(widget); + pThis->add_to_map(pToolItem); + } } void add_to_map(GtkToolButton* pToolItem) |