Kaydet (Commit) 7848b15c authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1187677 Dereference null return value

Change-Id: Ia09c80cc2cf6a35843b0794143febdb19d0eb717
üst 581ffdd2
...@@ -399,6 +399,9 @@ bool ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, bool bScrol ...@@ -399,6 +399,9 @@ bool ScViewFunctionSet::SetCursorAtCell( SCsCOL nPosX, SCsROW nPosY, bool bScrol
return false; return false;
ScTableProtection* pProtect = pDoc->GetTabProtection(nTab); ScTableProtection* pProtect = pDoc->GetTabProtection(nTab);
if (!pProtect)
return false;
bool bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS); bool bSkipProtected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_LOCKED_CELLS);
bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS); bool bSkipUnprotected = !pProtect->isOptionEnabled(ScTableProtection::SELECT_UNLOCKED_CELLS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment