]> err.no Git - libchamplain/commitdiff
Fix Bug 576204: Properties latitude and longitude are registered are not double
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 22 Mar 2009 11:16:14 +0000 (13:16 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 22 Mar 2009 11:16:14 +0000 (13:16 +0200)
champlain/champlain-view.c

index bdd823ceba0d78a214ece91512558b39a6164707..168e5e9ea0ea2caaec57b0ab7dc96a436e30cc1d 100644 (file)
@@ -554,7 +554,7 @@ champlain_view_class_init (ChamplainViewClass *champlainViewClass)
   */
   g_object_class_install_property (object_class,
       PROP_LONGITUDE,
-      g_param_spec_float ("longitude",
+      g_param_spec_double ("longitude",
          "Longitude",
          "The longitude coordonate of the map",
          -180.0f, 180.0f, 0.0f, CHAMPLAIN_PARAM_READWRITE));
@@ -568,7 +568,7 @@ champlain_view_class_init (ChamplainViewClass *champlainViewClass)
   */
   g_object_class_install_property (object_class,
       PROP_LATITUDE,
-      g_param_spec_float ("latitude",
+      g_param_spec_double ("latitude",
            "Latitude",
            "The latitude coordonate of the map",
            -90.0f, 90.0f, 0.0f, CHAMPLAIN_PARAM_READWRITE));
@@ -718,6 +718,8 @@ champlain_view_init (ChamplainView *view)
   priv->anchor.x = 0;
   priv->anchor.y = 0;
   priv->state = CHAMPLAIN_STATE_INIT;
+  priv->latitude = 0.0f;
+  priv->longitude = 0.0f;
 
   /* Setup viewport */
   priv->viewport = tidy_viewport_new ();