Sat, Aug 23 2003
10:15:17
|
|
Request created by guest
|
|
Subject: d.geodesic coor= segfaults
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.3rc1
d.geodesic segfaults after drawing the line when you use the coor= option.
(d.geodesic is Lat/Lon only)
Hamish
|
|
Sat, Sep 27 2003
15:22:53
|
|
Status changed to resolved by hbowman
|
|
Sat, Sep 27 2003
15:22:52
|
|
Comments added by hbowman
|
|
It gets through the program ok; at the end it tries to do:
D_add_to_list(G_recreate_command()) ;
But G_recreate_command breaks because opt->answer was set but opt->answers[0]
was still empty.
This fixes it. [in CVS]
(note bad colour names are already caught by the parser)
Hamish
diff -u -r1.5 main.c
--- main.c 16 Apr 2003 08:23:07 -0000 1.5
+++ main.c 27 Sep 2003 13:12:21 -0000
@@ -99,10 +99,9 @@
deftcolor = "white";
if (parm.tcolor->answer == NULL)
- parm.tcolor->answer = deftcolor;
- text_color = D_translate_color (parm.tcolor->answer);
- if (!text_color)
text_color = D_translate_color (deftcolor);
+ else
+ text_color = D_translate_color (parm.tcolor->answer);
setup_plot();
if (use_mouse)
|
|