From bd00fd98c66e3a19aeea30a4ecef0873da54d5bf Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 16 Aug 2012 14:45:26 +0200 Subject: _SdrItemBrowserControl::SetAttributes: fix previous commit: Since the element is no longer removed in the loop the same element is deleted over and over; also the erase should be from nEntryNum to end. Change-Id: I5767d5e453b5b9b05fe1869ab8915f23c30aab14 --- svx/source/svdraw/svdibrow.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svx/source') 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