summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-10-18 09:09:55 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-10-22 10:55:07 +0000
commitd381d4fb74cbac68148dd641af9d50b57910d456 (patch)
tree99d537981cbd538694b1e0cdec98f70cc3bde2e7 /src/ui
parentBetter fix to handle cache on drawing items (diff)
downloadinkscape-d381d4fb74cbac68148dd641af9d50b57910d456.tar.gz
inkscape-d381d4fb74cbac68148dd641af9d50b57910d456.zip
Select next filter primitive after removing current
Also fix crash on deleting bottom filter primitive Fix https://gitlab.com/inkscape/inkscape/issues/475
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/filter-effects-dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp
index 4521cada7..2001ad008 100644
--- a/src/ui/dialog/filter-effects-dialog.cpp
+++ b/src/ui/dialog/filter-effects-dialog.cpp
@@ -1909,6 +1909,7 @@ void FilterEffectsDialog::PrimitiveList::remove_selected()
if(prim) {
_observer->set(nullptr);
+ _model->erase(get_selection()->get_selected());
//XML Tree being used directly here while it shouldn't be.
sp_repr_unparent(prim->getRepr());