summaryrefslogtreecommitdiffstats
path: root/src/flood-context.cpp
diff options
context:
space:
mode:
authorJohn Bintz <me@johnbintz.com>2007-03-14 00:10:48 +0000
committerjohncoswell <johncoswell@users.sourceforge.net>2007-03-14 00:10:48 +0000
commit2e6a69b08c48ad27b17a836375cc83bd297f8e2b (patch)
tree1e413a1f386dc3754d9449d94db39c3c5d846f1a /src/flood-context.cpp
parentFixed [ 1678374 ]; hopefully made the optiongroup code more robust for differ... (diff)
downloadinkscape-2e6a69b08c48ad27b17a836375cc83bd297f8e2b.tar.gz
inkscape-2e6a69b08c48ad27b17a836375cc83bd297f8e2b.zip
Fix paint bucket point queueing issue
(bzr r2638)
Diffstat (limited to 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp3
1 files changed, 2 insertions, 1 deletions
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<NR::Point> *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;