From 8e8734dc15e614586f9b4963b69671ce16d5c137 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 30 May 2008 20:36:13 +0000 Subject: LPE STACKING! (many thanks to the french students who made this.) (bzr r5766) --- src/shape-editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shape-editor.cpp') 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 = -- cgit v1.2.3