From 9b73a4c7f6f5e9dade0ddaca5aadc9ecb326bb5c Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Tue, 10 Jan 2012 12:28:51 -0600 Subject: [PATCH] gschem: Fix bug with invert selection and attributes This fixes a bug that causes attributes to be left unselected when selected in the same select box as their parent object. --- gschem/src/o_select.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gschem/src/o_select.c b/gschem/src/o_select.c index 71e72e2..db3b92e 100644 --- a/gschem/src/o_select.c +++ b/gschem/src/o_select.c @@ -181,7 +181,9 @@ void o_select_object(GSCHEM_TOPLEVEL *w_current, OBJECT *o_current, o_attrib_deselect_invisible (w_current, toplevel->page_current->selection_list, o_current); - } else { + /* Don't select attributes if the type is MULTIPLE, as this causes + * issues with invert selection (CONTROLKEY pressed). */ + } else if( type != MULTIPLE) { o_attrib_add_selected (w_current, toplevel->page_current->selection_list, o_current); } -- 1.7.2.5