Kaydet (Commit) 3d7cc977 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736091 Improper use of negative value

Change-Id: I9cf59f66e4d8c7b1036f6808b428f3845aa181a9
üst ed75dbb1
......@@ -1208,7 +1208,7 @@ void ScChangeActionMove::GetDescription(
}
aTmpStr = ScChangeAction::GetRefString(GetBigRange(), pDoc, bFlag3D);
nPos = aRsc.indexOfAsciiL("#2", 2, nPos);
nPos = nPos >= 0 ? aRsc.indexOfAsciiL("#2", 2, nPos) : -1;
if (nPos >= 0)
{
aRsc = aRsc.replaceAt(nPos, 2, aTmpStr);
......
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