diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-06-23 10:34:45 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-06-23 10:34:45 +0000 |
commit | 4b4da984b976afec8b569de70255d9b4dde351b5 (patch) | |
tree | a9eded2113dbe9b0c3e93ddc20dfaa787d0ffc7e | |
parent | 786a331f4433b8fa247f774b811f159439658cc4 (diff) |
check whether an object is already selected before re-selecting it in order to avoid bogus warnings
svn path=/trunk/externals/iem/iemguts/; revision=11809
-rw-r--r-- | src/canvasselect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/canvasselect.c b/src/canvasselect.c index 4530ccc..cc8bc2a 100644 --- a/src/canvasselect.c +++ b/src/canvasselect.c @@ -92,7 +92,8 @@ static int canvasselect_doselect(t_glist*glist, int index) } if(obj) { - glist_select(glist, obj); + if(!glist_isselected(glist, obj)) + glist_select(glist, obj); } else { return -1; |