[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.7.0-20110116-1-g1573811)



The branch, master has been updated
       via  157381108371cc25684293e935c36834bb98e0fd (commit)
      from  dc66dc0af3426f92381e9b35573f5365371e527a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/src/o_selection.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 157381108371cc25684293e935c36834bb98e0fd
Author: Krzysztof Kosciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    libgeda: avoid double selection of objects
    
    In o_selection_add() check if object was already selected before
    selecting it again.
    
    Closes-bug: lp-703204

:100644 100644 aa13646... de8af45... M	libgeda/src/o_selection.c

=========
 Changes
=========

commit 157381108371cc25684293e935c36834bb98e0fd
Author: Krzysztof Kosciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    libgeda: avoid double selection of objects
    
    In o_selection_add() check if object was already selected before
    selecting it again.
    
    Closes-bug: lp-703204

diff --git a/libgeda/src/o_selection.c b/libgeda/src/o_selection.c
index aa13646..de8af45 100644
--- a/libgeda/src/o_selection.c
+++ b/libgeda/src/o_selection.c
@@ -43,6 +43,7 @@ SELECTION *o_selection_new( void )
 /*! \brief Selects the given object and adds it to the selection list
  *  \par Selects the given object and does the needed work to make the
  *  object visually selected.
+ *  Skip objects that are already selected.
  *
  *  \param [in] toplevel   The TOPLEVEL object
  *  \param [in] selection  Pointer to the selection list
@@ -50,8 +51,11 @@ SELECTION *o_selection_new( void )
  */
 void o_selection_add (TOPLEVEL *toplevel, SELECTION *selection, OBJECT *o_selected)
 {
-  o_selection_select (toplevel, o_selected);
-  geda_list_add( (GedaList *)selection, o_selected );
+  if (o_selected->selected == FALSE)
+  {
+    o_selection_select (toplevel, o_selected);
+    geda_list_add( (GedaList *)selection, o_selected );
+  }
 }
 
 /*! \brief Removes the given object from the selection list




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs