summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f543e34)
raw | patch | inline | side by side (parent: f543e34)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 6 Feb 2008 22:47:05 +0000 (22:47 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Wed, 6 Feb 2008 22:47:05 +0000 (22:47 +0000) |
src/live_effects/lpeobject.cpp | patch | blob | history |
index bcb01463a741e609253fc29149996df32576424c..e7810fc28a81f0b6ccb6f8813c0df292ca8956c7 100644 (file)
lpeobj->lpe = NULL;
}
- if (value) {
+ if ( value && Inkscape::LivePathEffect::LPETypeConverter.is_valid_key(value) ) {
lpeobj->effecttype = Inkscape::LivePathEffect::LPETypeConverter.get_id_from_key(value);
- if (lpeobj->effecttype != Inkscape::LivePathEffect::INVALID_LPE) {
- lpeobj->lpe = Inkscape::LivePathEffect::Effect::New(lpeobj->effecttype, lpeobj);
- }
+ lpeobj->lpe = Inkscape::LivePathEffect::Effect::New(lpeobj->effecttype, lpeobj);
lpeobj->effecttype_set = true;
} else {
lpeobj->effecttype = Inkscape::LivePathEffect::INVALID_LPE;