=== modified file 'src/selection.cpp' --- src/selection.cpp 2014-03-30 22:08:13 +0000 +++ src/selection.cpp 2014-11-15 21:27:09 +0000 @@ -346,7 +346,9 @@ SPItem *Selection::singleItem() { GSList const *items=itemList(); - if ( items != NULL && items->next == NULL ) { + if ( items == NULL && _layers->currentLayer() != NULL){ + return reinterpret_cast(_layers->currentLayer()); + } else if ( items != NULL && items->next == NULL ) { return reinterpret_cast(items->data); } else { return NULL; === modified file 'src/ui/dialog/livepatheffect-editor.cpp' --- src/ui/dialog/livepatheffect-editor.cpp 2014-11-10 17:39:33 +0000 +++ src/ui/dialog/livepatheffect-editor.cpp 2014-11-15 22:42:17 +0000 @@ -292,7 +292,7 @@ effectlist_store->clear(); current_lpeitem = NULL; - if ( sel && !sel->isEmpty() ) { + if ( sel ) { SPItem *item = sel->singleItem(); if ( item ) { SPLPEItem *lpeitem = dynamic_cast(item); @@ -422,7 +422,7 @@ LivePathEffectEditor::onAdd() { Inkscape::Selection *sel = _getSelection(); - if ( sel && !sel->isEmpty() ) { + if ( sel && sel->singleItem()) { SPItem *item = sel->singleItem(); if (item) { if ( dynamic_cast(item) ) { @@ -500,7 +500,7 @@ LivePathEffectEditor::onRemove() { Inkscape::Selection *sel = _getSelection(); - if ( sel && !sel->isEmpty() ) { + if ( sel && sel->singleItem()) { SPItem *item = sel->singleItem(); SPLPEItem *lpeitem = dynamic_cast(item); if ( lpeitem ) { @@ -518,7 +518,7 @@ void LivePathEffectEditor::onUp() { Inkscape::Selection *sel = _getSelection(); - if ( sel && !sel->isEmpty() ) { + if ( sel && sel->singleItem()) { SPItem *item = sel->singleItem(); SPLPEItem *lpeitem = dynamic_cast(item); if ( lpeitem ) { @@ -535,7 +535,7 @@ void LivePathEffectEditor::onDown() { Inkscape::Selection *sel = _getSelection(); - if ( sel && !sel->isEmpty() ) { + if ( sel && sel->singleItem()) { SPItem *item = sel->singleItem(); SPLPEItem *lpeitem = dynamic_cast(item); if ( lpeitem ) {