From d74c8b2edfc83d9dec1b7a82e14f80ff81c94ac4 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 6 Sep 2022 10:36:30 +0100 Subject: [PATCH] Stack workspace: Use full width for spectrum when no channels --- sdrgui/gui/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/workspace.cpp b/sdrgui/gui/workspace.cpp index 3ae06afe9..115fb03d5 100644 --- a/sdrgui/gui/workspace.cpp +++ b/sdrgui/gui/workspace.cpp @@ -467,7 +467,7 @@ void Workspace::stackSubWindows() } // Calculate width & height needed for channels - int channelMinWidth = m_userChannelMinWidth; + int channelMinWidth = channels.size() > 0 ? m_userChannelMinWidth : 0; int channelTotalMinHeight = 0; int expandingChannels = 0; for (auto window : channels)