From 8c0ce697003c01ce10807adb3a08b5353c19a447 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 30 Sep 2019 14:05:42 +0000 Subject: Apply a Nathan Lee fix to all LPE changing from SP_ACTIVE_DOCUMET to LPE->document. It also remove a boring check and allow to preview on file explorer some Items blocked. --- src/live_effects/lpe-fillet-chamfer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/live_effects/lpe-fillet-chamfer.cpp') diff --git a/src/live_effects/lpe-fillet-chamfer.cpp b/src/live_effects/lpe-fillet-chamfer.cpp index 771fdaf73..315e943f5 100644 --- a/src/live_effects/lpe-fillet-chamfer.cpp +++ b/src/live_effects/lpe-fillet-chamfer.cpp @@ -96,7 +96,7 @@ void LPEFilletChamfer::doOnApply(SPLPEItem const *lpeItem) Satellites satellites; double power = radius; if (!flexible) { - SPDocument * document = SP_ACTIVE_DOCUMENT; + SPDocument *document = getSPDoc(); Glib::ustring display_unit = document->getDisplayUnit()->abbr.c_str(); power = Inkscape::Util::Quantity::convert(power, unit.get_abbreviation(), display_unit.c_str()); } @@ -250,7 +250,7 @@ void LPEFilletChamfer::updateAmount() setSelected(_pathvector_satellites); double power = radius; if (!flexible) { - SPDocument * document = SP_ACTIVE_DOCUMENT; + SPDocument *document = getSPDoc(); Glib::ustring display_unit = document->getDisplayUnit()->abbr.c_str(); power = Inkscape::Util::Quantity::convert(power, unit.get_abbreviation(), display_unit.c_str()); } @@ -315,7 +315,7 @@ void LPEFilletChamfer::doBeforeEffect(SPLPEItem const *lpeItem) if (number_nodes != previous_number_nodes) { double power = radius; if (!flexible) { - SPDocument * document = SP_ACTIVE_DOCUMENT; + SPDocument *document = getSPDoc(); Glib::ustring display_unit = document->getDisplayUnit()->abbr.c_str(); power = Inkscape::Util::Quantity::convert(power, unit.get_abbreviation(), display_unit.c_str()); } -- cgit v1.2.3