summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-clone-original.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-09-30 14:05:42 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-09-30 14:05:42 +0000
commit8c0ce697003c01ce10807adb3a08b5353c19a447 (patch)
tree831c4f953706f1930d6094c50c564e52a2a39d30 /src/live_effects/lpe-clone-original.cpp
parentFix issue 872. LPE on rects is not rendering in browsers (diff)
downloadinkscape-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-clone-original.cpp')
-rw-r--r--src/live_effects/lpe-clone-original.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpe-clone-original.cpp b/src/live_effects/lpe-clone-original.cpp
index 0e285c66d..8df64b6c0 100644
--- a/src/live_effects/lpe-clone-original.cpp
+++ b/src/live_effects/lpe-clone-original.cpp
@@ -127,7 +127,7 @@ LPECloneOriginal::newWidget()
void
LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, const gchar * attributes, const gchar * css_properties)
{
- SPDocument * document = SP_ACTIVE_DOCUMENT;
+ SPDocument *document = getSPDoc();
if (!document || !origin || !dest) {
return;
}
@@ -282,7 +282,7 @@ LPECloneOriginal::cloneAttrbutes(SPObject *origin, SPObject *dest, const gchar *
void
LPECloneOriginal::doBeforeEffect (SPLPEItem const* lpeitem){
start_listening();
- SPDocument * document = SP_ACTIVE_DOCUMENT;
+ SPDocument *document = getSPDoc();
if (!document) {
return;
}