[libgis] Set time to current by default



commit 54ea323c961d322b75634ada70ecac9e69a7d76e
Author: Andy Spencer <andy753421 gmail com>
Date:   Sat Apr 17 06:27:39 2010 +0000

    Set time to current by default

 src/gis-viewer.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gis-viewer.c b/src/gis-viewer.c
index 075c039..f02d078 100644
--- a/src/gis-viewer.c
+++ b/src/gis-viewer.c
@@ -556,6 +556,7 @@ static void gis_viewer_init(GisViewer *viewer)
 {
 	g_debug("GisViewer: init");
 	/* Default values */
+	viewer->time        = time(NULL);
 	viewer->location[0] = 40;
 	viewer->location[1] = -100;
 	viewer->location[2] = 1.5*EARTH_R;



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