[GRASS-dev] Text rotations aren't maintained throughout redraws

In gis.m, the new text tool places arbitrary text in mouse-defined locations, at arbitrary angles. Using yesterday's cvs, the text angles aren't maintained throughout multiple redraws.

The error occurs when a text layer is added, an angle of rotation set, then click on a different layer in the gis manager, redraw, then click again on the text layer, and redraw. The final redraw should show the text rotation set back to the default of 0. Only by never clicking on a text layer in the gis manager once the rotation is set can you have your text angle maintained.

~ Eric.

Thanks for finding this Eric. It had to do with making sure that the
rotation was initialized at 0. I've fixed it can can commit the change after
the holidays. Here is a diff of the changes.

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

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

From: "Patton, Eric" <epatton@nrcan.gc.ca>
Date: Thu, 23 Nov 2006 15:34:57 -0500
To: <grass-dev@grass.itc.it>
Cc: <grassuser@grass.itc.it>
Subject: [GRASS-dev] Text rotations aren't maintained throughout redraws

In gis.m, the new text tool places arbitrary text in mouse-defined locations,
at arbitrary angles. Using yesterday's cvs, the text angles aren't maintained
throughout multiple redraws.

The error occurs when a text layer is added, an angle of rotation set, then
click on a different layer in the gis manager, redraw, then click again on the
text layer, and redraw. The final redraw should show the text rotation set
back to the default of 0. Only by never clicking on a text layer in the gis
manager once the rotation is set can you have your text angle maintained.

~ Eric.

(attachments)

dtext.diff (109 Bytes)