diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:51:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 12:06:22 +0000 |
commit | 3b6891ff6fa92bf64b8013181999e44d6dfb0b01 (patch) | |
tree | 64a687f3f9feac8ea715f91a47e90430ecb3b001 /sw | |
parent | 9c7d0d70c6f7900dd35ee47dba9029958bc6dd4a (diff) |
CID#1130380 (unlikely) invalid iterator use
Change-Id: I09b7186ce395eb8d32bb9604aeaa26fe2243eed1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 5410ab40011d..91a258698d9b 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -2992,6 +2992,10 @@ void SwTokenWindow::InsertAtSelection(const OUString& rText, const SwFormToken& ctrl_iterator iterActive = std::find(aControlList.begin(), aControlList.end(), pActiveCtrl); + assert(iterActive != aControlList.end()); + if (iterActive == aControlList.end()) + return; + Size aControlSize(GetOutputSizePixel()); if( WINDOW_EDIT == pActiveCtrl->GetType()) |