diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-05-30 20:36:13 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-05-30 20:36:13 +0000 |
| commit | 8e8734dc15e614586f9b4963b69671ce16d5c137 (patch) | |
| tree | 036c4af16f6f673757e6e2c580a8ec5c4f3518de /src/shape-editor.cpp | |
| parent | remove warnings (diff) | |
| download | inkscape-8e8734dc15e614586f9b4963b69671ce16d5c137.tar.gz inkscape-8e8734dc15e614586f9b4963b69671ce16d5c137.zip | |
LPE STACKING!
(many thanks to the french students who made this.)
(bzr r5766)
Diffstat (limited to 'src/shape-editor.cpp')
| -rw-r--r-- | src/shape-editor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 40e92e0dd..1d60671aa 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -191,9 +191,9 @@ void ShapeEditor::set_item(SPItem *item) { if (item) { SPLPEItem *lpeitem = SP_LPE_ITEM(item); - if (!sp_lpe_item_has_path_effect(lpeitem) || - !sp_lpe_item_get_livepatheffect(lpeitem)->isVisible() || - !sp_lpe_item_get_livepatheffect(lpeitem)->providesKnotholder()) { + if (!sp_lpe_item_get_current_lpe(lpeitem) || // if returns NULL, the whole expression evaluates to true and C++ will not call the otherwise crashing 2 functions below + !sp_lpe_item_get_current_lpe(lpeitem)->isVisible() || + !sp_lpe_item_get_current_lpe(lpeitem)->providesKnotholder()) { // only create nodepath if the item either doesn't have an LPE // or the LPE is invisible or it doesn't provide a knotholder itself this->nodepath = |
