diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 01:04:51 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-04-04 01:04:51 +0000 |
| commit | 4007abe02509fc1e312a007fb26f31c5a595df26 (patch) | |
| tree | 1baa70a370188042e52065ccc18723d1404d5de0 /src/sp-lpe-item.cpp | |
| parent | Update to trunk (diff) | |
| download | inkscape-4007abe02509fc1e312a007fb26f31c5a595df26.tar.gz inkscape-4007abe02509fc1e312a007fb26f31c5a595df26.zip | |
Begin first stage of resolving issue with duplicate knots
(bzr r13090.1.46)
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 71aa9545a..eda34a0b5 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -553,6 +553,7 @@ bool SPLPEItem::hasBrokenPathEffect() const bool SPLPEItem::hasPathEffect() const { + if (!path_effect_list) return false; //nullptr sucks if (path_effect_list->empty()) { return false; } @@ -698,6 +699,7 @@ PathEffectList const SPLPEItem::getEffectList() const Inkscape::LivePathEffect::LPEObjectReference* SPLPEItem::getCurrentLPEReference() { + if (!this->hasPathEffect()) return NULL; if (!this->current_path_effect && !this->path_effect_list->empty()) { setCurrentPathEffect(this->path_effect_list->back()); } @@ -707,6 +709,9 @@ Inkscape::LivePathEffect::LPEObjectReference* SPLPEItem::getCurrentLPEReference( Inkscape::LivePathEffect::Effect* SPLPEItem::getCurrentLPE() { + if (path_effect_list == NULL) { + return NULL; + } Inkscape::LivePathEffect::LPEObjectReference* lperef = getCurrentLPEReference(); if (lperef && lperef->lpeobject) |
