starmath/source/cursor.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
New commits: commit f36406bf441704d8904f860d81774f0f89ab270a Author: Takeshi Abe <t...@fixedpoint.jp> Date: Mon Aug 15 17:32:31 2016 +0900 starmath: Avoid assigned but unused value Change-Id: I3d8ede40e2231e3b88c43b17e353ea962e02acc7 diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index d3a54ff..047e288 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -296,9 +296,6 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){ //Begin edit section BeginEdit(); - //Position after insert should be after pNewNode - SmCaretPos PosAfterInsert = SmCaretPos(pNewNodes->back(), 1); - //Get the current position const SmCaretPos pos = mpPosition->CaretPos; @@ -324,14 +321,10 @@ void SmCursor::InsertNodes(SmNodeList* pNewNodes){ insIt = pLineList->insert(it, *newIt); if(newIt == pNewNodes->begin()) patchIt = insIt; - if((*newIt)->GetType() == NTEXT) - PosAfterInsert = SmCaretPos(*newIt, static_cast<SmTextNode*>(*newIt)->GetText().getLength()); - else - PosAfterInsert = SmCaretPos(*newIt, 1); } //Patch the places we've changed stuff PatchLineList(pLineList, patchIt); - PosAfterInsert = PatchLineList(pLineList, it); + SmCaretPos PosAfterInsert = PatchLineList(pLineList, it); //Release list, we've taken the nodes delete pNewNodes; pNewNodes = nullptr; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits