From c8d377f38e95972caeae1f489de7f87914ee35ab Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Fri, 15 Aug 2008 19:53:10 +0000 Subject: Eliminate more of SP_ACTIVE_DESKTOP (bzr r6633) --- src/tweak-context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tweak-context.cpp') 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); -- cgit v1.2.3