[GRASS5] [bug #3704] (grass) d.rast.arrow does not save a line in the monitor history

Hamish hamish_nospam at yahoo.com
Mon Oct 3 01:27:24 EDT 2005


> this bug's URL: http://intevation.de/rt/webrt?serial_num=3704
> ---------------------------------------------------------------------
> 
> Subject: d.rast.arrow does not save a line in the monitor history
..
> GRASS Version: GRASS 6.1.cvs (2005)
> 
> Name: David Finlayson
> 
> d.rast.arrow does not appear to write a line in the monitor history.
> As a result, d.save, d.out.png (what else?) do not put the arrow
> command in their output.
> 
> I wonder if this is the reson that d.zoom does not work with
> d.rast.arrow? There is another bug (Tracking ID 2012) that may be
> related.

d.rast.arrow isn't saved to the command history. Easy enough to add this
by putting this:

D_add_to_list(G_recreate_command());

towards the end of the main{} function in arrow.c.

Same with d.rast.num.


Any d.redraw type command depends on what is saved to the window's
command history list (see d.save). Sometimes this isn't what was entered
on the command line (eg d.text and d.barscale -m).


Another question:

Do the default fonts (romans et. al) have an arrow char built in?
(distant memory that they did?) If so we could use it with
R_text_rotation() to improve to a 360 degree resolution arrow drawing 
for standard GRASS aspect maps and ANSWERS aspect maps instead of the
current 8-way ones... maybe freetype same-char compatibility issues.



Hamish




More information about the grass-dev mailing list