From 13a5e1b05645b9847d758c481262997574163535 Mon Sep 17 00:00:00 2001 From: nicholasbishop Date: Sun, 19 Aug 2007 01:08:03 +0000 Subject: [PATCH] Filter effects dialog: feMerge fix; adding a new input should only happen if the user's drag motion points to a valid input primitive --- src/ui/dialog/filter-effects-dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 301ba8853..d1ce3b89c 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -1703,7 +1703,7 @@ bool FilterEffectsDialog::PrimitiveList::on_button_release_event(GdkEventButton* } } // Add new input? - if(!handled && c == _in_drag) { + if(!handled && c == _in_drag && in_val) { Inkscape::XML::Document *xml_doc = sp_document_repr_doc(prim->document); Inkscape::XML::Node *repr = xml_doc->createElement("svg:feMergeNode"); repr->setAttribute("inkscape:collect", "always"); -- 2.30.2