From 53d083213358b14b465f68339328252560cb1255 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 May 2013 11:19:42 +0200 Subject: fix alignment in code Change-Id: I0272e46cf34b52f578810ad0d17f33dd78accdd3 --- sfx2/source/doc/guisaveas.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index f5e6a1b6e5e8..a2701549606a 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -570,15 +570,16 @@ sal_Bool ModelData_Impl::ExecuteFilterDialog_Impl( const OUString& aFilterName ) try { uno::Sequence < beans::PropertyValue > aProps; - uno::Any aAny = m_pOwner->GetFilterConfiguration()->getByName( aFilterName ); - if ( aAny >>= aProps ) - { - sal_Int32 nPropertyCount = aProps.getLength(); - for( sal_Int32 nProperty=0; nProperty < nPropertyCount; ++nProperty ) - if( aProps[nProperty].Name == "UIComponent" ) - { + uno::Any aAny = m_pOwner->GetFilterConfiguration()->getByName( aFilterName ); + if ( aAny >>= aProps ) + { + sal_Int32 nPropertyCount = aProps.getLength(); + for( sal_Int32 nProperty=0; nProperty < nPropertyCount; ++nProperty ) + { + if( aProps[nProperty].Name == "UIComponent" ) + { OUString aServiceName; - aProps[nProperty].Value >>= aServiceName; + aProps[nProperty].Value >>= aServiceName; if( !aServiceName.isEmpty() ) { uno::Reference< ui::dialogs::XExecutableDialog > xFilterDialog( @@ -616,6 +617,7 @@ sal_Bool ModelData_Impl::ExecuteFilterDialog_Impl( const OUString& aFilterName ) break; } + } } } catch( const container::NoSuchElementException& ) -- cgit v1.2.3