diff options
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r-- | starmath/source/cursor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 4694254cfefc..34dd19fbe836 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1488,7 +1488,8 @@ bool SmCursor::IsAtTailOfBracket(SmBracketType eBracketType, SmBraceNode** ppBra return false; } - sal_uInt16 index = pNode->FindIndex(); + int index = pParentNode->IndexOfSubNode(pNode); + assert(index >= 0); if (index + 1 != pParentNode->GetNumSubNodes()) { // The cursor is not at the tail at one of ancestor nodes. return false; |