summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2010-09-17 17:48:37 +0200
committerChristian Lippka <cl@openoffice.org>2010-09-17 17:48:37 +0200
commit89ee63a7ea77a8f0626e1b198269dba3e3b3d85c (patch)
tree9db703b18304d1b741509fb26d3a333bfae7b468 /framework
parentmib19: #163566# do not throw exceptions of label is not available (diff)
downloadcore-89ee63a7ea77a8f0626e1b198269dba3e3b3d85c.tar.gz
core-89ee63a7ea77a8f0626e1b198269dba3e3b3d85c.zip
mib19: #163566# do not throw exceptions if window is not available
Diffstat (limited to 'framework')
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx
index f72759891acb..9dd19599ff50 100644
--- a/framework/source/layoutmanager/layoutmanager.cxx
+++ b/framework/source/layoutmanager/layoutmanager.cxx
@@ -1394,7 +1394,7 @@ sal_Bool LayoutManager::implts_readWindowStateData( const rtl::OUString& aName,
try
{
Sequence< PropertyValue > aWindowState;
- if ( xPersistentWindowState->getByName( aName ) >>= aWindowState )
+ if ( xPersistentWindowState->hasByName( aName ) && (xPersistentWindowState->getByName( aName ) >>= aWindowState) )
{
sal_Bool bValue( sal_False );
for ( sal_Int32 n = 0; n < aWindowState.getLength(); n++ )