diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-08-30 14:07:43 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-08-30 07:00:44 +0000 |
commit | 7b9ca5a60c32bf5aeb4066f362fe0c7b826bae9e (patch) | |
tree | ce8c26e18f0e47905632ac43afbddea0ac59fcfa /starmath | |
parent | d19c2417a5b5bbf765c39ed69412248f639da41d (diff) |
Every composite node is of type SmStructureNode
Change-Id: Ie8e8b248dc8f08e612f640b2afd6639dfd3375ff
Reviewed-on: https://gerrit.libreoffice.org/28474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/visitors.hxx | 2 | ||||
-rw-r--r-- | starmath/source/visitors.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index f19d6ae7b228..a80a6f6ad03b 100644 --- a/starmath/inc/visitors.hxx +++ b/starmath/inc/visitors.hxx @@ -253,7 +253,7 @@ private: * it. */ void DefaultVisit( SmNode* pNode ) override; - void VisitCompositionNode( SmNode* pNode ); + void VisitCompositionNode( SmStructureNode* pNode ); /** Caret position where the selection starts */ SmCaretPos maStartPos; /** Caret position where the selection ends */ diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 92e90c91b4a0..48f8d0e2d8ce 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -651,7 +651,8 @@ void SmSetSelectionVisitor::DefaultVisit( SmNode* pNode ) { } } -void SmSetSelectionVisitor::VisitCompositionNode( SmNode* pNode ) { +void SmSetSelectionVisitor::VisitCompositionNode( SmStructureNode* pNode ) +{ //Change state if maStartPos is in front of this node if( maStartPos.pSelectedNode == pNode && maStartPos.Index == 0 ) mbSelecting = !mbSelecting; |