[gimp/wip/Jehan/layers-dockable-refresh: 22/69] app: fix crash with a NULL highlight area.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/layers-dockable-refresh: 22/69] app: fix crash with a NULL highlight area.
- Date: Thu, 4 Nov 2021 17:12:55 +0000 (UTC)
commit 3b694909bef0b9ca387b55e217142309e3c6404e
Author: Jehan <jehan girinstud io>
Date: Thu Feb 25 19:24:54 2021 +0100
app: fix crash with a NULL highlight area.
app/widgets/gimpwidgets-utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c
index 5c18cd4c47..7ac5fd3189 100644
--- a/app/widgets/gimpwidgets-utils.c
+++ b/app/widgets/gimpwidgets-utils.c
@@ -1298,7 +1298,8 @@ gimp_highlight_widget (GtkWidget *widget,
"gimp-widget-highlight"));
old_rect = g_object_get_data (G_OBJECT (widget), "gimp-widget-highlight-rect");
- if (highlight && old_highlight && ! gdk_rectangle_equal (rect, old_rect))
+ if (highlight && old_highlight &&
+ rect && old_rect && ! gdk_rectangle_equal (rect, old_rect))
{
/* Highlight area changed. */
gimp_highlight_widget (widget, FALSE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]