diff options
-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()) |