summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/syswin.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 350e699fb858..e19d821d43c3 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: syswin.cxx,v $
*
- * $Revision: 1.37 $
+ * $Revision: 1.38 $
*
- * last change: $Author: obo $ $Date: 2004-09-09 16:22:26 $
+ * last change: $Author: pjunck $ $Date: 2004-10-27 13:14:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -691,12 +691,9 @@ void SystemWindow::SetWindowStateData( const WindowStateData& rData )
mpFrame->SetWindowState( &aState );
- // Syncrones Resize ausloesen, damit wir nach Moeglichkeit gleich
- // mit der richtigen Groesse rechnen
- long nNewWidth;
- long nNewHeight;
- pWindow->mpFrame->GetClientSize( nNewWidth, nNewHeight );
- ImplHandleResize( pWindow, nNewWidth, nNewHeight );
+ // do a synchronous resize for layout reasons
+ if( rData.GetMask() & (WINDOWSTATE_MASK_WIDTH|WINDOWSTATE_MASK_HEIGHT) )
+ ImplHandleResize( pWindow, rData.GetWidth(), rData.GetHeight() );
}
else
{