Kaydet (Commit) 49a52d76 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

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

Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
üst 83b507c0
...@@ -1943,7 +1943,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) ...@@ -1943,7 +1943,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