starmath/inc/visitors.hxx | 2 +- starmath/source/visitors.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
New commits: commit 7b9ca5a60c32bf5aeb4066f362fe0c7b826bae9e Author: Takeshi Abe <t...@fixedpoint.jp> Date: Tue Aug 30 14:07:43 2016 +0900 Every composite node is of type SmStructureNode Change-Id: Ie8e8b248dc8f08e612f640b2afd6639dfd3375ff Reviewed-on: https://gerrit.libreoffice.org/28474 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Takeshi Abe <t...@fixedpoint.jp> diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index f19d6ae..a80a6f6 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 92e90c9..48f8d0e 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits