aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-06-23 10:34:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-06-23 10:34:45 +0000
commit4b4da984b976afec8b569de70255d9b4dde351b5 (patch)
treea9eded2113dbe9b0c3e93ddc20dfaa787d0ffc7e
parent786a331f4433b8fa247f774b811f159439658cc4 (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.c3
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;