diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 15:38:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-20 20:03:50 +0200 |
commit | edc8d9650d7fbd98d6b301c662724c97f61128e5 (patch) | |
tree | 08315b0b1d60f5153c6cf98415e3b31288fdc2e9 /starmath | |
parent | ca7c2f6cd48917fefdbee3585f6ccfd491582c5f (diff) |
cid#1448322 try silence Splice iterator mismatch
Change-Id: If419d66811e5a60d50575f7b984811a29785459a
Reviewed-on: https://gerrit.libreoffice.org/76019
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cursor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 538a4f26bf94..2d74d454a2f6 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -743,7 +743,8 @@ bool SmCursor::InsertRow() { if(pTable) { std::unique_ptr<SmNodeList> pNewLineList(new SmNodeList); //Move elements from pLineList to pNewLineList - pNewLineList->splice(pNewLineList->begin(), *pLineList, it, pLineList->end()); + SmNodeList& rLineList = *pLineList; + pNewLineList->splice(pNewLineList->begin(), rLineList, it, rLineList.end()); //Make sure it is valid again it = pLineList->end(); if(it != pLineList->begin()) |