diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-03-15 10:26:34 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-03-15 10:26:34 +0000 |
commit | 006c3f15012a82c89c8888fbc9a24cc5244814b2 (patch) | |
tree | 5f6a0f7c05088ffabd4ecc3b5a82a921219e023a | |
parent | cba54f9b02bacdce71e16b755223f090910b3ee4 (diff) |
INTEGRATION: CWS mav17 (1.7.76); FILE MERGED
2005/02/28 11:09:36 mav 1.7.76.1: #i42398# handle impossibility to get visual area
-rw-r--r-- | sw/source/ui/uiview/swcli.cxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/swcli.cxx b/sw/source/ui/uiview/swcli.cxx index 8d166cff5e..ca5255e41d 100644 --- a/sw/source/ui/uiview/swcli.cxx +++ b/sw/source/ui/uiview/swcli.cxx @@ -2,9 +2,9 @@ * * $RCSfile: swcli.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2005-01-31 09:11:16 $ + * last change: $Author: obo $ $Date: 2005-03-15 11:26:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,6 +59,10 @@ * ************************************************************************/ +#ifndef _COM_SUN_STAR_EMBED_NOVISUALAREASIZEEXCEPTION_HPP_ +#include <com/sun/star/embed/NoVisualAreaSizeException.hpp> +#endif + #pragma hdrstop #ifndef _WRTSH_HXX @@ -177,7 +181,16 @@ void SwOleClient::ViewChanged() //Rahmens in der Core sich veraendert. // TODO/LEAN: getMapUnit can switch object to running state - awt::Size aSz = GetObject()->getVisualAreaSize( GetAspect() ); + awt::Size aSz; + try + { + aSz = GetObject()->getVisualAreaSize( GetAspect() ); + } + catch( embed::NoVisualAreaSizeException& ) + { + // Nothing will be done + } + Size aVisSize( aSz.Width, aSz.Height ); // Bug 24833: solange keine vernuenftige Size vom Object kommt, |