Code

Final fix for gradient fill algorithm
authorjohncoswell <johncoswell@users.sourceforge.net>
Sat, 21 Apr 2007 11:16:34 +0000 (11:16 +0000)
committerjohncoswell <johncoswell@users.sourceforge.net>
Sat, 21 Apr 2007 11:16:34 +0000 (11:16 +0000)
src/flood-context.cpp

index a25ab2196615edea8c731bf08e8b1dc08d0ae27f..33281995752fffa36e3ae00c876d5395fd731b31 100644 (file)
@@ -668,7 +668,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
         merge_pixel_with_background(orig_color, dtc, merged_orig);
         
         unsigned char *trace_t = get_pixel(trace_px, (int)color_point[NR::X], (int)color_point[NR::Y], width);
-        if (trace_t[0] != 255) {
+        if ((trace_t[0] != 255) && (trace_t[3] != 255)) {
           fill_queue.push_front(color_point);
         }