Kaydet (Commit) 51f5a792 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane Kaydeden (comit) Petr Mladek

fdo#64150 don't segfault when there is no line

Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
Reviewed-on: https://gerrit.libreoffice.org/3765Reviewed-by: 's avatarThorsten Behrens <tbehrens@suse.com>
Tested-by: 's avatarThorsten Behrens <tbehrens@suse.com>
üst 0ea76f88
...@@ -1966,7 +1966,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) ...@@ -1966,7 +1966,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId )
for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n) for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n)
{ {
editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) ); editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) );
pLine->SetWidth( nWidth ); if( pLine )
pLine->SetWidth( nWidth );
} }
} }
return sal_True; return sal_True;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment