diff options
| author | John Bintz <me@johnbintz.com> | 2007-03-03 00:37:56 +0000 |
|---|---|---|
| committer | johncoswell <johncoswell@users.sourceforge.net> | 2007-03-03 00:37:56 +0000 |
| commit | b004215551747be1821195193258f54905273c2b (patch) | |
| tree | b0145293093451d8adc9eb3555435f60af397c56 /src/flood-context.cpp | |
| parent | made it callable by other extensions. the workaround is sorta ugly, but it sh... (diff) | |
| download | inkscape-b004215551747be1821195193258f54905273c2b.tar.gz inkscape-b004215551747be1821195193258f54905273c2b.zip | |
Add user-selectable paint bucket path offset size
(bzr r2508)
Diffstat (limited to 'src/flood-context.cpp')
| -rw-r--r-- | src/flood-context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp index f58f70940..e909d446a 100644 --- a/src/flood-context.cpp +++ b/src/flood-context.cpp @@ -266,6 +266,8 @@ static void do_trace(GdkPixbuf *px, SPDesktop *desktop, NR::Matrix transform) { long totalNodeCount = 0L; + double offset = prefs_get_double_attribute_limited("tools.paintbucket", "offset", 1.5, 0.0, 2.0); + for (unsigned int i=0 ; i<results.size() ; i++) { Inkscape::Trace::TracingEngineResult result = results[i]; totalNodeCount += result.getNodeCount(); @@ -287,7 +289,7 @@ static void do_trace(GdkPixbuf *px, SPDesktop *desktop, NR::Matrix transform) { Shape *expanded_path_shape = new Shape(); expanded_path_shape->ConvertToShape(path_shape, fill_nonZero); - path_shape->MakeOffset(expanded_path_shape, 1.5, join_round, 4); + path_shape->MakeOffset(expanded_path_shape, offset, join_round, 4); expanded_path_shape->ConvertToShape(path_shape, fill_positive); Path *expanded_path = new Path(); |
