diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-03-09 19:47:13 +0900 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-09 16:22:17 +0000 |
commit | 1de73e4ddfff3a67c9470e8434c2bb2cb3f43dd5 (patch) | |
tree | 50fa64f00a5c02df7dfed2a90b8fd9cd9afdeee0 /starmath/source/cursor.cxx | |
parent | 4eb5f363ed9a3181a817f12d5ec49eede13b9c9c (diff) |
starmath: Drop SmNode::FindIndex
Its sole usage can be replaced with SmNode::IndexOfSubNode.
Change-Id: Icfd4a3fe846b585c5fa3f47e0768729aba66d73e
Reviewed-on: https://gerrit.libreoffice.org/23064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
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; |