summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/fplot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/fplot.c b/sys/src/cmd/fplot.c
index b8f80a498..c51dc8642 100644
--- a/sys/src/cmd/fplot.c
+++ b/sys/src/cmd/fplot.c
@@ -432,7 +432,7 @@ zoom(void)
m.buttons = 7;
r = egetrect(1, &m);
- if(r.min.x == 0 && r.min.y == 0 && r.max.x == 0 && r.max.y == 0)
+ if(Dx(r) < 1 || Dy(r) < 1)
return;
xmin_ = convx(&screen->r, r.min.x);
xmax_ = convx(&screen->r, r.max.x);