diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-03 17:42:12 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-03 19:14:14 +0200 |
commit | 49a52d7631b2f29678ac0b20384525da5ad23938 (patch) | |
tree | e045eed3c38584486b2156138b7fe214fe6a2e86 /editeng/source/items | |
parent | 83b507c0f0858471333e3a079aedb15327186742 (diff) |
fdo#64150 don't segfault when there is no line
Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
Diffstat (limited to 'editeng/source/items')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 8741e69778de..566a375f5100 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1943,7 +1943,8 @@ bool SvxBoxItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) for (int n(0); n != SAL_N_ELEMENTS(aBorders); ++n) { editeng::SvxBorderLine* pLine = const_cast< editeng::SvxBorderLine* >( GetLine( aBorders[n] ) ); - pLine->SetWidth( nWidth ); + if( pLine ) + pLine->SetWidth( nWidth ); } } return sal_True; |