[Gpredict-svn] SF.net SVN: gpredict:[915] trunk/src/gtk-polar-view-popup.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-10-03 10:27:55
|
Revision: 915
http://gpredict.svn.sourceforge.net/gpredict/?rev=915&view=rev
Author: aa1vs
Date: 2011-10-03 10:27:48 +0000 (Mon, 03 Oct 2011)
Log Message:
-----------
Fix segfault in gtk-polar-view-popup.c
Modified Paths:
--------------
trunk/src/gtk-polar-view-popup.c
Modified: trunk/src/gtk-polar-view-popup.c
===================================================================
--- trunk/src/gtk-polar-view-popup.c 2011-10-03 00:56:15 UTC (rev 914)
+++ trunk/src/gtk-polar-view-popup.c 2011-10-03 10:27:48 UTC (rev 915)
@@ -186,6 +186,7 @@
gfloat x,y;
guint32 col;
guint tres,ttidx;
+ gint *catnum;
/* get satellite object */
@@ -206,16 +207,19 @@
root = goo_canvas_get_root_item_model (GOO_CANVAS (pv->canvas));
+ catnum = g_new0 (gint, 1);
+ *catnum = sat->tle.catnr;
+
if (obj->showtrack) {
/* add sky track */
/* add it to the storage structure */
g_hash_table_insert (pv->showtracks_on,
- &(sat->tle.catnr),
+ catnum,
NULL);
/* remove it from the don't show */
g_hash_table_remove (pv->showtracks_off,
- &(sat->tle.catnr));
+ catnum);
/* create points */
@@ -284,11 +288,11 @@
else {
/* add it to the hide */
g_hash_table_insert (pv->showtracks_off,
- &(sat->tle.catnr),
+ catnum,
NULL);
/* remove it from the show */
g_hash_table_remove (pv->showtracks_on,
- &(sat->tle.catnr));
+ catnum);
/* delete sky track */
idx = goo_canvas_item_model_find_child (root, obj->track);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|