diff options
author | Dezsi Szabolcs <dezsiszabi@hotmail.com> | 2012-04-20 14:10:56 +0530 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-04-23 08:53:52 +0200 |
commit | 1ad284007d898c68665c91979be3bd326c290ba1 (patch) | |
tree | 8d37091d50aca4aaf1fcde366ef4a6c8114c3372 /editeng/source | |
parent | 563e65eea742df35ab9b620f6384c2918c32915c (diff) |
fdo#47436: Fixed crash while opening odt file.
Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'editeng/source')
-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 f01f91e500bc..48beef63ded8 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->SetStyle( eBorderStyle ); + if( pLine ) + pLine->SetStyle( eBorderStyle ); } return sal_True; } |