[GRASS-SVN] r35246 - grass/trunk/lib/display
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 6 22:33:42 EST 2009
Author: glynn
Date: 2009-01-06 22:33:42 -0500 (Tue, 06 Jan 2009)
New Revision: 35246
Modified:
grass/trunk/lib/display/draw2.c
Log:
D_box_* shouldn't move the current point
Modified: grass/trunk/lib/display/draw2.c
===================================================================
--- grass/trunk/lib/display/draw2.c 2009-01-07 02:46:07 UTC (rev 35245)
+++ grass/trunk/lib/display/draw2.c 2009-01-07 03:33:42 UTC (rev 35246)
@@ -401,6 +401,8 @@
void D_box_abs(double x1, double y1, double x2, double y2)
{
+ struct vector save = cur;
+
D_begin();
D_move_abs(x1, y1);
D_cont_abs(x2, y1);
@@ -409,6 +411,8 @@
D_close();
D_end();
D_fill();
+
+ cur = save;
}
/******************************************************************************/
More information about the grass-commit
mailing list