coverity#735801 Dereference after null check
Change-Id: I4a403098388bdb7f4f09242fcd71a50d38fc630e
This commit is contained in:
parent
13afdc0b14
commit
21cea08139
@ -2992,8 +2992,8 @@ void ScInputHandler::SetReference( const ScRange& rRef, ScDocument* pDoc )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( ( rRef.aStart.Tab() != aCursorPos.Tab() ||
|
||||
rRef.aStart.Tab() != rRef.aEnd.Tab() ) && pDoc )
|
||||
if ( rRef.aStart.Tab() != aCursorPos.Tab() ||
|
||||
rRef.aStart.Tab() != rRef.aEnd.Tab() )
|
||||
aRefStr = rRef.Format(SCA_VALID|SCA_TAB_3D, pDoc, aAddrDetails);
|
||||
else
|
||||
aRefStr = rRef.Format(SCA_VALID, pDoc, aAddrDetails);
|
||||
|
Loading…
x
Reference in New Issue
Block a user