diff options
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 916638c65c7a..e40fa1399798 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -1243,10 +1243,12 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, sal_u const uno::Reference< beans::XPropertySet > xPropSet( mXModel, uno::UNO_QUERY ); if ( xPropSet.is() ) { - ImplGetPropertyValue( xPropSet, OUString( "TabStop" ) ); - sal_Int32 nTabStop( 0 ); - if ( mAny >>= nTabStop ) - nDefaultTabSizeSrc = nTabStop; + if(ImplGetPropertyValue( xPropSet, OUString( "TabStop" ) )) + { + sal_Int32 nTabStop( 0 ); + if ( mAny >>= nTabStop ) + nDefaultTabSizeSrc = nTabStop; + } } const sal_uInt32 nDefaultTabSize = MapSize( awt::Size( nDefaultTabSizeSrc, 1 ) ).Width; sal_uInt32 nDefaultTabs = std::abs( maRect.GetWidth() ) / nDefaultTabSize; |