[libchamplain] Display polygons again



commit af5388efd3689df1d617fb9a606698235225a0ce
Author: JiÅ?í Techet <techet gmail com>
Date:   Sat Mar 20 18:05:14 2010 +0100

    Display polygons again
    
    Still mystery what the original code was good for - commenting out
    as it causes that the polygon is not displayed.
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 champlain/champlain-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 0853384..3c14793 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -3108,9 +3108,9 @@ champlain_view_add_polygon (ChamplainView *view,
   g_signal_connect (polygon, "notify",
       G_CALLBACK (notify_polygon_cb), view);
 
-  if (priv->viewport_size.width == 0 ||
-      priv->viewport_size.height == 0)
-    return;
+//  if (priv->viewport_size.width == 0 ||
+//      priv->viewport_size.height == 0)
+//    return;
 
   clutter_actor_set_position (CLUTTER_ACTOR (polygon), 0, 0);
   clutter_container_add_actor (CLUTTER_CONTAINER (priv->polygon_layer),



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