[GRASS-dev] Re: single-click zoom doesn't preserve aspect ratio

Michael Barton michael.barton at asu.edu
Tue Nov 7 17:10:55 EST 2006

This should already be in the cvs, as I sent it in on Saturday (I've been
out of the office). If not either you can fix it or I can do it tomorrow.

Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

> From: Moritz Lennert <mlennert at club.worldonline.be>
> Date: Tue, 07 Nov 2006 16:01:08 +0100
> To: Maciej Sieczka <tutey at o2.pl>
> Cc: Grass Developers List <grass-dev at grass.itc.it>, Michael Barton
> <michael.barton at asu.edu>
> Subject: Re: single-click zoom doesn't preserve aspect ratio
> Maciej Sieczka wrote:
>> Trying to switch to "Map fills display window" mode, I get an error:
>> can't read "nsres": no such variable
>> can't read "nsres": no such variable
>>     while executing
>> "expr round(abs($n-$s)/$nsres)"
>>     (procedure "MapCanvas::currentzoom" line 27)
>>     invoked from within
>> "MapCanvas::currentzoom $mon"
>>     (procedure "MapCanvas::runprograms" line 24)
>>     invoked from within
>> "MapCanvas::runprograms $mon [expr {$mymodified != 0}]"
>>     (procedure "MapCanvas::drawmap" line 38)
>>     invoked from within
>> "MapCanvas::drawmap $mon"
>>     (procedure "MapCanvas::display_server" line 9)
>>     invoked from within
>> "MapCanvas::display_server"
>>     ("after" script)
> I can confirm this. Changing nsres and ewres (in the next line) to
> explore_nsres and explore_ewres apparently solves the problem for me,
> but I'm not sure whether this is the correct way to do it. Michael ?
> However, this raises another in my eyes more fundamental issue with
> gis.m: when such an error happens, the display canvas becomes
> unresponsive and even if I close it and open another canvas, I still
> cannot display anything. I have to close gis.m and relaunch it to be
> able to display again. This seems to be an issue with catching the
> error. Any ideas on how to solve this ?
> Moritz

More information about the grass-dev mailing list