diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-15 19:53:10 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-15 19:53:10 +0000 |
| commit | c8d377f38e95972caeae1f489de7f87914ee35ab (patch) | |
| tree | 54b807614372cbb1227ac59ea559d8f9595ea0ba /src/tweak-context.cpp | |
| parent | Correct fix for Esc and Shift+Z in pencil tool (diff) | |
| download | inkscape-c8d377f38e95972caeae1f489de7f87914ee35ab.tar.gz inkscape-c8d377f38e95972caeae1f489de7f87914ee35ab.zip | |
Eliminate more of SP_ACTIVE_DESKTOP
(bzr r6633)
Diffstat (limited to 'src/tweak-context.cpp')
| -rw-r--r-- | src/tweak-context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index 86d7e6da2..9c6981128 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -444,7 +444,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, NR::Poi double th_max = (0.6 - 0.59*sqrt(fidelity)) / NR::expansion(i2doc); double threshold = MAX(th_max, th_max*force); res->ConvertEvenLines(threshold); - res->Simplify(threshold / (SP_ACTIVE_DESKTOP->current_zoom())); + res->Simplify(threshold / (selection->desktop()->current_zoom())); if (newrepr) { // converting to path, need to replace the repr bool is_selected = selection->includes(item); |
