diff options
Diffstat (limited to 'sfx2/source/dialog/splitwin.cxx')
-rw-r--r-- | sfx2/source/dialog/splitwin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index b6749227d0..0521abb0a5 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -650,7 +650,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize } } } - if (nInsertPos == nCount && nLastWindowIdx != nCount - 1) + if (nCount != 0 && nInsertPos == nCount && nLastWindowIdx != nCount - 1) { nInsertPos = nLastWindowIdx + 1; // ignore all non-windows after the last window } |