diff options
-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; |