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-offset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/live_effects/lpe-offset.cpp') diff --git a/src/live_effects/lpe-offset.cpp b/src/live_effects/lpe-offset.cpp index 4c3aa6b50..401875700 100644 --- a/src/live_effects/lpe-offset.cpp +++ b/src/live_effects/lpe-offset.cpp @@ -199,7 +199,7 @@ void LPEOffset::doBeforeEffect (SPLPEItem const* lpeitem) { original_bbox(lpeitem); - SPDocument * document = SP_ACTIVE_DOCUMENT; + SPDocument *document = getSPDoc(); if (!document) { return; } -- cgit v1.2.3