fdo#47436: Fixed crash while opening odt file.
Signed-off-by: Andras Timar <atimar@suse.com>
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index f01f91e..48beef6 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;
}