From 94b1a382dd934b5d27de011e3206926c12323593 Mon Sep 17 00:00:00 2001 From: BoredGuy1 <66702733+BoredGuy1@users.noreply.github.com> Date: Thu, 30 May 2024 23:19:34 -0700 Subject: [PATCH] fixed position line disappearing when zoomed out (#7296) --- src/gui/editors/PositionLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/editors/PositionLine.cpp b/src/gui/editors/PositionLine.cpp index 8b938443d..dda44e8f7 100644 --- a/src/gui/editors/PositionLine.cpp +++ b/src/gui/editors/PositionLine.cpp @@ -93,7 +93,7 @@ void PositionLine::zoomChange(float zoom) { int playHeadPos = x() + width() - 1; - resize(8.0 * zoom, height()); + resize(std::max(8.0 * zoom, 1.0), height()); move(playHeadPos - width() + 1, y()); update();