diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-03 17:42:12 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-05-05 17:51:01 +0000 |
commit | 1e2fed7ab5886b2899b14eed4cb8c3b238524289 (patch) | |
tree | 9423fdbfddeaebac357bb965a9039cda9d341335 | |
parent | b8ec5216464e99feb5b6debfb517cc7b19a74739 (diff) |
fdo#64150 don't segfault when there is no line
Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
Reviewed-on: https://gerrit.libreoffice.org/3768
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
-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 da4ca7dba164..2afb0455eefa 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1980,7 +1980,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; |