[GRASS-SVN] r32865 - in grass/trunk: display/d.labels
display/d.rast.arrow display/d.rast.num display/d.what.rast
imagery/i.vpoints
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 18 16:19:33 EDT 2008
Author: glynn
Date: 2008-08-18 16:19:33 -0400 (Mon, 18 Aug 2008)
New Revision: 32865
Modified:
grass/trunk/display/d.labels/main.c
grass/trunk/display/d.rast.arrow/main.c
grass/trunk/display/d.rast.num/main.c
grass/trunk/display/d.what.rast/main.c
grass/trunk/imagery/i.vpoints/setup.c
Log:
Don't bother checking the return value from D_get_screen_window()
Modified: grass/trunk/display/d.labels/main.c
===================================================================
--- grass/trunk/display/d.labels/main.c 2008-08-18 20:18:15 UTC (rev 32864)
+++ grass/trunk/display/d.labels/main.c 2008-08-18 20:19:33 UTC (rev 32865)
@@ -123,8 +123,7 @@
G_fatal_error(_("Current window not settable"));
/* Determine conversion factors */
- if (D_get_screen_window(&t, &b, &l, &r))
- G_fatal_error(_("Getting screen window"));
+ D_get_screen_window(&t, &b, &l, &r);
if (D_do_conversions(&window, t, b, l, r))
G_fatal_error(_("Error in calculating conversions"));
Modified: grass/trunk/display/d.rast.arrow/main.c
===================================================================
--- grass/trunk/display/d.rast.arrow/main.c 2008-08-18 20:18:15 UTC (rev 32864)
+++ grass/trunk/display/d.rast.arrow/main.c 2008-08-18 20:19:33 UTC (rev 32865)
@@ -243,8 +243,7 @@
G_fatal_error(_("Current window not settable"));
/* Determine conversion factors */
- if (D_get_screen_window(&t, &b, &l, &r))
- G_fatal_error(_("Getting screen window"));
+ D_get_screen_window(&t, &b, &l, &r);
if (D_do_conversions(&window, t, b, l, r))
G_fatal_error(_("Error in calculating conversions"));
Modified: grass/trunk/display/d.rast.num/main.c
===================================================================
--- grass/trunk/display/d.rast.num/main.c 2008-08-18 20:18:15 UTC (rev 32864)
+++ grass/trunk/display/d.rast.num/main.c 2008-08-18 20:19:33 UTC (rev 32865)
@@ -161,8 +161,7 @@
/* Determine conversion factors */
- if (D_get_screen_window(&t, &b, &l, &r))
- G_fatal_error(_("Getting screen window"));
+ D_get_screen_window(&t, &b, &l, &r);
if (D_do_conversions(&window, t, b, l, r))
G_fatal_error(_("Error in calculating conversions"));
Modified: grass/trunk/display/d.what.rast/main.c
===================================================================
--- grass/trunk/display/d.what.rast/main.c 2008-08-18 20:18:15 UTC (rev 32864)
+++ grass/trunk/display/d.what.rast/main.c 2008-08-18 20:19:33 UTC (rev 32865)
@@ -99,8 +99,7 @@
G_fatal_error(_("Can't set current graphics window"));
/* Determine conversion factors */
- if (D_get_screen_window(&t, &b, &l, &r))
- G_fatal_error(_("Getting graphics window coordinates"));
+ D_get_screen_window(&t, &b, &l, &r);
if (D_do_conversions(&window, t, b, l, r))
G_fatal_error(_("Error in calculating conversions"));
Modified: grass/trunk/imagery/i.vpoints/setup.c
===================================================================
--- grass/trunk/imagery/i.vpoints/setup.c 2008-08-18 20:18:15 UTC (rev 32864)
+++ grass/trunk/imagery/i.vpoints/setup.c 2008-08-18 20:19:33 UTC (rev 32865)
@@ -42,8 +42,7 @@
if (D_set_cur_wind(name))
G_fatal_error("Current graphics frame not available");
- if (D_get_screen_window(&t, &b, &l, &r))
- G_fatal_error("Getting graphics coordinates");
+ D_get_screen_window(&t, &b, &l, &r);
/* clear the window, if requested to do so */
if (blank) {
More information about the grass-commit
mailing list