Showing the changes to sys/src/cmd/fplot.c (1 of 1 file). Show all
Unified · Split
| @@ -432,7 +432,7 @@ zoom(void) · 431 unmodified lines | ||
| 432 | 432 | |
| 433 | 433 | m.buttons = 7; |
| 434 | 434 | r = egetrect(1, &m); |
| 435 | − if(r.min.x == 0 && r.min.y == 0 && r.max.x == 0 && r.max.y == 0) | |
| 435 | + if(Dx(r) < 1 || Dy(r) < 1) | |
| 436 | 436 | return; |
| 437 | 437 | xmin_ = convx(&screen->r, r.min.x); |
| 438 | 438 | xmax_ = convx(&screen->r, r.max.x); |