[libchamplain] Fix champlain_selection_layer_select() in single mode.



commit ba630bbf5b30751d5d3aabb2a9fe7ec1fe28bec8
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Thu Jul 9 23:59:21 2009 +0200

    Fix champlain_selection_layer_select() in single mode.
    
    The method was acting as a NOOP because of a mistake in real_select().

 champlain/champlain-selection-layer.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-selection-layer.c b/champlain/champlain-selection-layer.c
index f0252ba..acd5088 100644
--- a/champlain/champlain-selection-layer.c
+++ b/champlain/champlain-selection-layer.c
@@ -130,10 +130,6 @@ real_select (ChamplainSelectionLayer *layer,
 
   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);
 



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