Skip to content

Commit

Permalink
d.rast.num: Constrain rendering within the current display extent in …
Browse files Browse the repository at this point in the history
…the wx monitor (#3489)

* d.rast.num: Use GRASS_REGION to constrain rendering within the current display extent

* Use -1 instead of < 0

* Use PR #3500
  • Loading branch information
HuidaeCho committed Mar 14, 2024
1 parent 9c3b67e commit 827f988
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions display/d.rast.num/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ int main(int argc, char **argv)
if (G_parser(argc, argv))
exit(EXIT_FAILURE);

/* Setup driver and check important information */
D_open_driver();

map_name = opt.map->answer;

if (strcmp("none", opt.grid_color->answer) == 0)
Expand Down Expand Up @@ -221,10 +224,6 @@ int main(int argc, char **argv)
"not allowed)"));
}

/* Setup driver and check important information */

D_open_driver();

if (opt.font->answer)
D_font(opt.font->answer);
else if (opt.path->answer)
Expand Down

0 comments on commit 827f988

Please sign in to comment.