summaryrefslogtreecommitdiffstats
path: root/src/flood-context.cpp
diff options
context:
space:
mode:
authorJohn Bintz <me@johnbintz.com>2007-02-28 01:38:55 +0000
committerjohncoswell <johncoswell@users.sourceforge.net>2007-02-28 01:38:55 +0000
commitb66dbee4198e847bd089c9b97d9e459dc4e4250c (patch)
tree4a5cc2b4871162d6dd6f4d82917f18392f2c2a31 /src/flood-context.cpp
parentAdd paint bucket tolerance setting and toolbar widget to control tolerance (diff)
downloadinkscape-b66dbee4198e847bd089c9b97d9e459dc4e4250c.tar.gz
inkscape-b66dbee4198e847bd089c9b97d9e459dc4e4250c.zip
Change paint bucket tolerance toolbar to use percentages rather than color channel distance
(bzr r2463)
Diffstat (limited to 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index e737b90f9..d1c2ad65b 100644
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
@@ -431,7 +431,7 @@ static void sp_flood_do_flood_fill(SPEventContext *event_context, GdkEvent *even
unsigned char *orig_px = get_pixel(px, (int)pw[NR::X], (int)pw[NR::Y], width);
for (int i = 0; i < 4; i++) { orig_color[i] = orig_px[i]; }
- int tolerance = prefs_get_int_attribute_limited("tools.paintbucket", "tolerance", 1, 0, 255);
+ int tolerance = (255 * prefs_get_int_attribute_limited("tools.paintbucket", "tolerance", 1, 0, 100)) / 100;
while (!fill_queue.empty() && !aborted) {
NR::Point cp = fill_queue.front();