summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/partwnd.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx
index a0de0f568905..63b156247d2c 100644
--- a/sfx2/source/dialog/partwnd.cxx
+++ b/sfx2/source/dialog/partwnd.cxx
@@ -61,8 +61,9 @@ SfxPartChildWnd_Impl::SfxPartChildWnd_Impl
// Create Window
pWindow = new SfxPartDockWnd_Impl( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK );
eChildAlignment = SFX_ALIGN_TOP;
- if ( pInfo )
- pInfo->nFlags |= SFX_CHILDWIN_FORCEDOCK;
+
+ assert(pInfo);
+ pInfo->nFlags |= SFX_CHILDWIN_FORCEDOCK;
((SfxDockingWindow*)pWindow)->SetFloatingSize( Size( 175, 175 ) );
pWindow->SetSizePixel( Size( 175, 175 ) );