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:
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user