Преглед изворни кода

Don't bother checking the return value from D_get_screen_window()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32865 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements пре 17 година
родитељ
комит
76cf50a36d

+ 1 - 2
display/d.labels/main.c

@@ -123,8 +123,7 @@ int main(int argc, char **argv)
 	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"));
 

+ 1 - 2
display/d.rast.arrow/main.c

@@ -243,8 +243,7 @@ int main(int argc, char **argv)
 	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"));
 

+ 1 - 2
display/d.rast.num/main.c

@@ -161,8 +161,7 @@ int main(int argc, char **argv)
 
     /* 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"));
 

+ 1 - 2
display/d.what.rast/main.c

@@ -99,8 +99,7 @@ int main(int argc, char **argv)
 	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"));
 

+ 1 - 2
imagery/i.vpoints/setup.c

@@ -42,8 +42,7 @@ int dsp_setup(int blank, struct Cell_head *cellhead)
     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) {