summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-06 06:35:59 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-06 06:58:06 +0200
commit44ba417d72a006fe8a9d30122a42bbdf7a7066ce (patch)
tree6ceebfdd0e91559fd25d10bf6a8fa5d462e7c46e
parentcbb081e2d4bb6d6ded1bd3ff97fc53e5a874a12c (diff)
coverity#982181: Unchecked return value
Change-Id: Idcac7155b9cd3ee94c3ed773a0e6e7f24a48d47a
-rw-r--r--sd/source/filter/eppt/epptso.cxx10
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;