|
@@ -138,7 +138,8 @@ int main(int argc, char **argv)
|
|
|
if (Rast_read_fp_range(map_name, "", &fp_range) == -1)
|
|
|
G_fatal_error(_("Range file for <%s> not available"), map_name);
|
|
|
if (D_open_driver() != 0)
|
|
|
- G_fatal_error(_("No graphics device selected"));
|
|
|
+ G_fatal_error(_("No graphics device selected. "
|
|
|
+ "Use d.mon to select graphics device."));
|
|
|
|
|
|
D_setup_unity(0);
|
|
|
D_get_src(&t, &b, &l, &r);
|
|
@@ -280,7 +281,8 @@ int main(int argc, char **argv)
|
|
|
D_polygon_rel(x_box, y_box, 5);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ D_save_command(G_recreate_command());
|
|
|
D_close_driver();
|
|
|
|
|
|
exit(EXIT_SUCCESS);
|