summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-05-03 17:42:12 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-05-03 19:14:14 +0200
commit49a52d7631b2f29678ac0b20384525da5ad23938 (patch)
treee045eed3c38584486b2156138b7fe214fe6a2e86
parent83b507c0f0858471333e3a079aedb15327186742 (diff)
fdo#64150 don't segfault when there is no line
Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
-rw-r--r--editeng/source/items/frmitems.cxx3
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;