summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-05-12 17:34:12 +0200
committerCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2011-05-12 17:34:12 +0200
commit746fff15ad34616635e09125f6d0656da39a05ad (patch)
treee5acf2f10401ec6f44a693a9fc8c7586f690a453
parent63d6ea7efa4d6215b2458e9be4237d9cb9cc7bd9 (diff)
Assign to iterator the return value of insert(), fixes fdo#36957
Note that the code path through the else branch is likely broken, too. Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>
-rw-r--r--sw/source/ui/index/cnttab.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index f8de59b026..ae7dfadea1 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -3187,7 +3187,7 @@ void SwTokenWindow::InsertAtSelection(
SwFormToken aTmpToken(TOKEN_TEXT);
SwTOXEdit* pEdit = new SwTOXEdit(&aCtrlParentWin, this, aTmpToken);
- aControlList.insert(iterInsert, pEdit);
+ iterInsert = aControlList.insert(iterInsert, pEdit);
pEdit->SetText(sRight);
pEdit->SetSizePixel(aControlSize);