summaryrefslogtreecommitdiffstats
path: root/src/tweak-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-15 19:53:10 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-15 19:53:10 +0000
commitc8d377f38e95972caeae1f489de7f87914ee35ab (patch)
tree54b807614372cbb1227ac59ea559d8f9595ea0ba /src/tweak-context.cpp
parentCorrect fix for Esc and Shift+Z in pencil tool (diff)
downloadinkscape-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.cpp2
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);