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>
This commit is contained in:
Takeshi Abe
2016-08-30 14:07:43 +09:00
parent d19c2417a5
commit 7b9ca5a60c
2 changed files with 3 additions and 2 deletions

View File

@@ -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 */

View File

@@ -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;