cid#1494386 Dereference null return value
Change-Id: I3dee29c68166c88bce30d2c88a6684be43f8e717 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125598 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
1559596632
commit
0cc2a8e893
1 changed files with 3 additions and 2 deletions
|
@ -296,9 +296,10 @@ bool SdTransformOOo2xDocument::getBulletState( const SfxItemSet& rSet, sal_uInt1
|
|||
bool SdTransformOOo2xDocument::transformItemSet( SfxItemSet& rSet, bool bNumbering )
|
||||
{
|
||||
bool bRet = false;
|
||||
if( bNumbering )
|
||||
const SvxLRSpaceItem* pItem = bNumbering ? rSet.GetItem<SvxLRSpaceItem>(EE_PARA_LRSPACE) : nullptr;
|
||||
if (pItem)
|
||||
{
|
||||
SvxLRSpaceItem aItem( *rSet.GetItem<SvxLRSpaceItem>( EE_PARA_LRSPACE ) );
|
||||
SvxLRSpaceItem aItem(*pItem);
|
||||
if( (aItem.GetLeft() != 0) || (aItem.GetTextFirstLineOffset() != 0) )
|
||||
{
|
||||
aItem.SetLeftValue( 0 );
|
||||
|
|
Loading…
Reference in a new issue