diff options
| author | Jabiertxof <jtx@jtx> | 2017-02-18 12:10:14 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2017-02-18 12:10:14 +0000 |
| commit | 50cff32bb7ab2fb2ab618ee5b3f4e31852e5802c (patch) | |
| tree | 4405713f4584d4ebfbb483e541304165e1a27b8c /src/live_effects/effect.cpp | |
| parent | Fix bug on rotate copies with one line vertical input (diff) | |
| download | inkscape-50cff32bb7ab2fb2ab618ee5b3f4e31852e5802c.tar.gz inkscape-50cff32bb7ab2fb2ab618ee5b3f4e31852e5802c.zip | |
Fix bug 1665595 and prevent other LPE the same bug when using ACTIVE_DOCUMENT
Fixed bugs:
- https://launchpad.net/bugs/1665595
(bzr r15530)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 50e2aa353..f664870ec 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -430,6 +430,9 @@ void Effect::processObjects(LpeAction lpe_action) { SPDocument * document = SP_ACTIVE_DOCUMENT; + if (!document) { + return; + } for (std::vector<const char *>::iterator el_it = items.begin(); el_it != items.end(); ++el_it) { const char * id = *el_it; |
