[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - editeng/source
Lionel Elie Mamane
lionel at mamane.lu
Fri May 3 16:33:05 PDT 2013
editeng/source/items/frmitems.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 924fdc8773a75de54b6ca6ceeaa686035b1f270d
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Fri May 3 17:42:12 2013 +0200
fdo#64150 don't segfault when there is no line
Change-Id: Iab36de3d407925cdb0e092afae457907f0261b3e
Reviewed-on: https://gerrit.libreoffice.org/3765
Reviewed-by: Thorsten Behrens <tbehrens at suse.com>
Tested-by: Thorsten Behrens <tbehrens at suse.com>
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 35c04bb..275ef73f 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1966,7 +1966,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;
More information about the Libreoffice-commits
mailing list