Details Ticket 2073


Comment | Reply | Take | Open


Serial Number 2073
Subject d.geodesic coor= segfaults
Area bug
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status resolved
Last User Contact Never contacted
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sat Sep 27 15:22:52 2003 (5 yr ago)
Created Sat Aug 23 10:15:17 2003 (5 yr ago)

Transaction History Ticket 2073


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)

Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request