From 88c1642d83bed44a75c4fe6827c5f02fc50141c2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Feb 2021 00:42:55 +0100 Subject: [PATCH] Fix timeline zoom oddities after dragging a very small zoom rectangle. --- src/wx/timeline.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 5a98c829a..3187792be 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -625,6 +625,8 @@ Timeline::left_up_zoom (wxMouseEvent& ev) if ((bottom_right.x - top_left.x) < 8 || (bottom_right.y - top_left.y) < 8) { /* Very small zoom rectangle: we assume it wasn't intentional */ + _zoom_point = optional (); + Refresh (); return; } -- 2.30.2