summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdibrow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdibrow.cxx')
-rw-r--r--svx/source/svdraw/svdibrow.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx
index f76e4231695b..ecc11a961ef1 100644
--- a/svx/source/svdraw/svdibrow.cxx
+++ b/svx/source/svdraw/svdibrow.cxx
@@ -1043,11 +1043,11 @@ void _SdrItemBrowserControl::SetAttributes(const SfxItemSet* pSet, const SfxItem
} // while
if (aList.size()>nEntryNum) { // maybe still too many entries
- sal_uIntPtr nTooMuch=aList.size()-nEntryNum;
- for (sal_uIntPtr nNum=0; nNum<nTooMuch; nNum++) {
- delete ImpGetEntry(nEntryNum);
+ size_t const nTooMuch = aList.size() - nEntryNum;
+ for (size_t n = nEntryNum; n < aList.size(); ++n) {
+ delete aList[n];
}
- aList.erase(aList.begin(), aList.begin() + nTooMuch);
+ aList.erase(aList.begin() + nEntryNum, aList.end());
RowRemoved(nEntryNum,nTooMuch);
}
} else {