diff options
author | Stephan Schäfer <ssa@openoffice.org> | 2002-12-09 08:23:17 +0000 |
---|---|---|
committer | Stephan Schäfer <ssa@openoffice.org> | 2002-12-09 08:23:17 +0000 |
commit | 9be3f2b7e65d626b01ca758e8bd0215b0fd1fbcb (patch) | |
tree | b158144c6c0396e15ef50261a98f3b5b2dc3c970 | |
parent | 3c8f7e7351d47c374dbaea4199855ff67c750af0 (diff) |
#106003# choose only decorated windows as dialog parents
-rw-r--r-- | vcl/source/app/svapp.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 52c819c77cc5..161e8e60cba9 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svapp.cxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.41 $ * - * last change: $Author: sb $ $Date: 2002-11-26 15:33:30 $ + * last change: $Author: ssa $ $Date: 2002-12-09 09:23:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1614,7 +1614,11 @@ Window* Application::GetDefDialogParent() { while( pWin->mpParent ) pWin = pWin->mpParent; - return pWin->mpFrameWindow->ImplGetWindow(); + // use only decorated windows + if( pWin->mpFrameWindow->GetStyle() & (WB_MOVEABLE | WB_SIZEABLE) ) + return pWin->mpFrameWindow->ImplGetWindow(); + else + return NULL; } else { |