Fix gcolorsel crash when lowering the tolerance the list becomes empty.

This commit is contained in:
mycroft 2000-11-30 05:53:50 +00:00
parent 66c2e068b6
commit a6481816bd
2 changed files with 16 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: patch-sum,v 1.6 2000/11/30 05:16:56 mycroft Exp $
$NetBSD: patch-sum,v 1.7 2000/11/30 05:53:50 mycroft Exp $
MD5 (patch-aa) = bfa1d85780d82c9cd7bc756fbc5c061d
MD5 (patch-ab) = 98f0a2dd5b3b9a773c324cadcce64b8b
@ -6,3 +6,4 @@ MD5 (patch-ac) = 9b70bff4f0db954965deb7804e86076c
MD5 (patch-ad) = c86d8550effe1b66182f0793443bfe4b
MD5 (patch-ae) = 91bd72e2f686a2dda5c0d2c7de4b4b3b
MD5 (patch-af) = f143c4c8bc7b0aefdcb84b49c22278f5
MD5 (patch-ag) = cd0cc5eaae30fb9061f4a6ff858e2f97

View file

@ -0,0 +1,14 @@
$NetBSD: patch-ag,v 1.1 2000/11/30 05:53:50 mycroft Exp $
--- mini-utils/gcolorsel/mdi-color-generic.c.orig Thu May 11 01:12:48 2000
+++ mini-utils/gcolorsel/mdi-color-generic.c Thu Nov 30 05:51:12 2000
@@ -565,6 +565,9 @@
next = g_list_next (next);
}
+ if (mcg->last == 0)
+ mdi_color_generic_post_change (mcg, col, CHANGE_CLEAR);
+
gtk_object_unref (GTK_OBJECT (col));
mcg->last--;