diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-17 11:19:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-21 08:23:59 +0200 |
commit | 53d083213358b14b465f68339328252560cb1255 (patch) | |
tree | c878881319dfee76750de69ac4255ea44b154dab /sfx2 | |
parent | 5ab3015aaec7bea309721fcf04af06c8c1519fcb (diff) |
fix alignment in code
Change-Id: I0272e46cf34b52f578810ad0d17f33dd78accdd3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 18 |
1 files 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& ) |