summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpeobject.h
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-05 16:51:40 +0000
committerjabiertxof <info@marker.es>2016-10-05 16:51:40 +0000
commit124c2b96d76984dd9fe7a4db0f9b8738ea3ba657 (patch)
tree32e958bc4a04346f53c0c7d5294f3daf3db736c9 /src/live_effects/lpeobject.h
parentadd lock (diff)
downloadinkscape-124c2b96d76984dd9fe7a4db0f9b8738ea3ba657.tar.gz
inkscape-124c2b96d76984dd9fe7a4db0f9b8738ea3ba657.zip
add button to release measures
(bzr r15017.1.40)
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