From: Carl Hetherington Date: Sun, 14 Feb 2021 23:42:55 +0000 (+0100) Subject: Fix timeline zoom oddities after dragging a very small zoom rectangle. X-Git-Tag: v2.15.129~6 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=88c1642d83bed44a75c4fe6827c5f02fc50141c2 Fix timeline zoom oddities after dragging a very small zoom rectangle. --- 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; }