summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpeobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpeobject.h')
-rw-r--r--src/live_effects/lpeobject.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/live_effects/lpeobject.h b/src/live_effects/lpeobject.h
index 2e62707e3..087223947 100644
--- a/src/live_effects/lpeobject.h
+++ b/src/live_effects/lpeobject.h
@@ -38,8 +38,14 @@ public:
/* Note that the returned pointer can be NULL in a valid LivePathEffectObject contained in a valid list of lpeobjects in an lpeitem!
* So one should always check whether the returned value is NULL or not */
- Inkscape::LivePathEffect::Effect * get_lpe() { return lpe; };
- Inkscape::LivePathEffect::Effect const * get_lpe() const { return lpe; };
+ Inkscape::LivePathEffect::Effect * get_lpe() {
+ if(this) return lpe;
+ else return NULL;
+ }
+ Inkscape::LivePathEffect::Effect const * get_lpe() const {
+ if(this) return lpe;
+ else return NULL;
+ };
Inkscape::LivePathEffect::Effect *lpe; // this can be NULL in a valid LivePathEffectObject