diff --git a/sdrgui/gui/workspace.cpp b/sdrgui/gui/workspace.cpp index e0e9cc8be..12045191e 100644 --- a/sdrgui/gui/workspace.cpp +++ b/sdrgui/gui/workspace.cpp @@ -501,7 +501,7 @@ void Workspace::stackVerticalSubWindows() // Calculate spare vertical space, to be shared between non-fixed windows int spareSpacePerWindow; - if (requiresVScrollBar) { + if (requiresVScrollBar || (nonFixedWindows == 0)) { spareSpacePerWindow = 0; } else { spareSpacePerWindow = (mdiSize.height() - minHeight) / nonFixedWindows;