|
@@ -418,19 +418,19 @@ int main(int argc, char **argv)
|
|
|
|
|
|
G_verbose_message(_("Plotting..."));
|
|
|
|
|
|
- if (level >= 2)
|
|
|
+ overlap = 1;
|
|
|
+ if (level >= 2 && window.proj != PROJECTION_LL) {
|
|
|
Vect_get_map_box(&Map, &box);
|
|
|
+ overlap = G_window_percentage_overlap(&window, box.N, box.S,
|
|
|
+ box.E, box.W);
|
|
|
+ G_debug(1, "overlap = %f \n", overlap);
|
|
|
+ }
|
|
|
|
|
|
- if (level >= 2 && (window.north < box.S || window.south > box.N ||
|
|
|
- window.east < box.W ||
|
|
|
- window.west > G_adjust_easting(box.E, &window))) {
|
|
|
+ if (overlap == 0) {
|
|
|
G_warning(_("The bounding box of the map is outside the current region, "
|
|
|
"nothing drawn"));
|
|
|
}
|
|
|
else {
|
|
|
- overlap = G_window_percentage_overlap(&window, box.N, box.S,
|
|
|
- box.E, box.W);
|
|
|
- G_debug(1, "overlap = %f \n", overlap);
|
|
|
if (overlap < 1)
|
|
|
Vect_set_constraint_region(&Map, window.north, window.south,
|
|
|
window.east, window.west,
|