diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-05-23 20:00:48 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2016-05-24 00:40:36 +0000 |
commit | 4ab3149381352c86cb84fc01fe69b2c7929c98fb (patch) | |
tree | c1b45226e5fa5555c25cb975fcda2850acbd7c68 /starmath/source/cursor.cxx | |
parent | 91585d248c7eae60fde0956da3da95c55fafdbcc (diff) |
starmath: Fix missing call of AnnotationSelection() for SmCursor::Copy
... with unit tests of Copy/Cut/Paste.
Change-Id: I74dd6f235b52ef2c1388ea0d15d32af0fb30b2c8
Reviewed-on: https://gerrit.libreoffice.org/25362
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r-- | starmath/source/cursor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 262d2bd85062..b70b8edd0791 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1160,10 +1160,12 @@ void SmCursor::Copy(){ if(!HasSelection()) return; + AnnotateSelection(); //Find selected node SmNode* pSNode = FindSelectedNode(mpTree); //Find visual line SmNode* pLine = FindTopMostNodeInLine(pSNode, true); + assert(pLine); //Clone selected nodes SmNodeList* pList; |