]> err.no Git - libchamplain/commitdiff
Fix champlain_selection_layer_select() in single mode.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Thu, 9 Jul 2009 21:59:21 +0000 (23:59 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 28 Jul 2009 21:23:17 +0000 (17:23 -0400)
The method was acting as a NOOP because of a mistake in real_select().

champlain/champlain-selection-layer.c

index f0252bac6d5963bd826e91073588361386e08ad3..acd5088cbc1ec71ccc175af8abbd7d7be72d27c1 100644 (file)
@@ -129,10 +129,6 @@ real_select (ChamplainSelectionLayer *layer,
   DEBUG ("Select %p", marker);
 
   if (layer->priv->mode == CHAMPLAIN_SELECTION_SINGLE)
-    {
-      return;
-    }
-  else if (layer->priv->mode == CHAMPLAIN_SELECTION_SINGLE)
     {
       /* Clear previous selection */
       champlain_selection_layer_unselect_all (layer);