From 6e7c4a47c2478804f2b07d0bc50caaddf1049d5f Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Mon, 22 Jul 2019 01:14:02 +0200 Subject: [PATCH] Fixes #5061: Fix Effect Rack View in Instrument The EffectRackView in an InstrumentTrackWindow had some parts hidden when loading files with >= 4 effects. This was now fixed by force-resizing the EffectRackView to its desired size. It's a dirty fix, but good enough, plus many Instrument UIs might get rewritten to be resizable in the future. --- src/tracks/InstrumentTrack.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index 5466dd80632..4c71eeef69b 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -1477,6 +1477,8 @@ InstrumentTrackWindow::InstrumentTrackWindow( InstrumentTrackView * _itv ) : adjustTabSize(m_ssView); adjustTabSize(instrumentFunctions); adjustTabSize(m_effectView); + // stupid bugfix, no one knows why + m_effectView->resize(INSTRUMENT_WIDTH - 4, INSTRUMENT_HEIGHT - 4 - 1); adjustTabSize(m_midiView); adjustTabSize(m_miscView);