diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-30 14:05:42 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-30 14:05:42 +0000 |
| commit | 8c0ce697003c01ce10807adb3a08b5353c19a447 (patch) | |
| tree | 831c4f953706f1930d6094c50c564e52a2a39d30 /src/live_effects/lpe-fillet-chamfer.cpp | |
| parent | Fix issue 872. LPE on rects is not rendering in browsers (diff) | |
| download | inkscape-8c0ce697003c01ce10807adb3a08b5353c19a447.tar.gz inkscape-8c0ce697003c01ce10807adb3a08b5353c19a447.zip | |
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.
Diffstat (limited to 'src/live_effects/lpe-fillet-chamfer.cpp')
| -rw-r--r-- | src/live_effects/lpe-fillet-chamfer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } |
