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)