Code

Filter effects dialog:
authornicholasbishop <nicholasbishop@users.sourceforge.net>
Sun, 19 Aug 2007 01:08:03 +0000 (01:08 +0000)
committernicholasbishop <nicholasbishop@users.sourceforge.net>
Sun, 19 Aug 2007 01:08:03 +0000 (01:08 +0000)
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

index 301ba8853d10206cc19d12304da49a6014538ace..d1ce3b89c191430c7403f67e5cbbbe3dcc482327 100644 (file)
@@ -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");