diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-05-24 22:38:52 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-25 00:17:07 +0200 |
commit | 385116041c1ca91d6df2c037a5a95460a1f0fb09 (patch) | |
tree | 628e4d58f358e053ae2406e92ba4ef15a3b6ab81 | |
parent | 3694f94b7457614e34d6ce039acdfa082071562b (diff) |
fix previous commit:
erase in SwLabDlg::_ReplaceGroup should go until end()
-rw-r--r-- | sw/source/ui/envelp/label1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx index 2c6257ce8e68..25ca092ed5b5 100644 --- a/sw/source/ui/envelp/label1.cxx +++ b/sw/source/ui/envelp/label1.cxx @@ -84,7 +84,7 @@ void SwLabRec::FillItem( SwLabItem& rItem ) const void SwLabDlg::_ReplaceGroup( const String &rMake ) { // Remove old entries - pRecs->erase( pRecs->begin() + 1, pRecs->begin() + pRecs->size() - 1 ); + pRecs->erase(pRecs->begin() + 1, pRecs->end()); aLabelsCfg.FillLabels(rtl::OUString(rMake), *pRecs); aLstGroup = rMake; } |