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

coverity#736100 Improper use of negative value

Change-Id: Ia5cf36b64841f2d465c922da40008a540cc6caf7
üst 70ba0a8d
...@@ -933,7 +933,9 @@ void SmCursor::InsertFraction() { ...@@ -933,7 +933,9 @@ void SmCursor::InsertFraction() {
//Find Parent and offset in parent //Find Parent and offset in parent
SmStructureNode *pLineParent = pLine->GetParent(); SmStructureNode *pLineParent = pLine->GetParent();
int nParentIndex = pLineParent->IndexOfSubNode(pLine); int nParentIndex = pLineParent->IndexOfSubNode(pLine);
OSL_ENSURE(nParentIndex != -1, "pLine must be a subnode of pLineParent!"); assert(nParentIndex != -1); //pLine must be a subnode of pLineParent!
if (nParentIndex == -1)
return;
//We begin modifying the tree here //We begin modifying the tree here
BeginEdit(); BeginEdit();
......
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