From 926cfd2b23e07ccb47805800cd970bccf1d6b259 Mon Sep 17 00:00:00 2001 From: johncoswell Date: Wed, 14 Mar 2007 00:10:48 +0000 Subject: [PATCH] Fix paint bucket point queueing issue --- src/flood-context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flood-context.cpp b/src/flood-context.cpp index aa6eab7b3..791da969f 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -310,9 +310,10 @@ static bool try_add_to_queue(std::queue *fill_queue, guchar *px, guch unsigned char *t = get_pixel(px, x, y, width); if (compare_pixels(t, orig, dtc, threshold, method)) { unsigned char *trace_t = get_pixel(trace_px, x, y, width); - if (trace_t[3] != 255) { + if (trace_t[3] != 255 && trace_t[0] != 255) { if (fill_switch) { fill_queue->push(NR::Point(x, y)); + trace_t[0] = 255; } } return false; -- 2.30.2