From 7b9ca5a60c32bf5aeb4066f362fe0c7b826bae9e Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 30 Aug 2016 14:07:43 +0900 Subject: [PATCH] Every composite node is of type SmStructureNode Change-Id: Ie8e8b248dc8f08e612f640b2afd6639dfd3375ff Reviewed-on: https://gerrit.libreoffice.org/28474 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/inc/visitors.hxx | 2 +- 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;