diff options
author | Pascal Junck <pjunck@openoffice.org> | 2004-10-27 12:14:24 +0000 |
---|---|---|
committer | Pascal Junck <pjunck@openoffice.org> | 2004-10-27 12:14:24 +0000 |
commit | d7c14055e4e16119c5282c86ecf7b22bbc09822b (patch) | |
tree | c215c4a5776339e64ac5128074c9e72a15532c21 /vcl/source/window/syswin.cxx | |
parent | 506e4bf21e1ec341e49785085650ed8a27c8005e (diff) |
INTEGRATION: CWS dbwizard1 (1.37.40); FILE MERGED
2004/10/20 14:24:19 pl 1.37.40.1: #i35858# GetClientSize is supposed to return 0,0 on invisible windows
Diffstat (limited to 'vcl/source/window/syswin.cxx')
-rw-r--r-- | vcl/source/window/syswin.cxx | 13 |
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 { |