From d380fc7f50edb23c0db670475ba0de5b49f56c9d Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 10 Jan 2022 06:31:20 -0500 Subject: [PATCH] Ensure that Qt TAS piano roll recalculates line width for horizontal scroll bar when reset is called. This fixes incorrect horizontal scroll bar behavior when loading new projects that have a different controller count. --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index eb7fbfd5..930e28cf 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -4139,6 +4139,7 @@ void QPianoRoll::reset(void) numColumns = 2 + (NUM_JOYPAD_BUTTONS * num_joysticks); + calcFontData(); } //---------------------------------------------------------------------------- void QPianoRoll::save(EMUFILE *os, bool really_save)