summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/container/IndexedPropertyValuesContainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/container/IndexedPropertyValuesContainer.cxx b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
index cd329af150e9..b8b91f3ee48f 100644
--- a/comphelper/source/container/IndexedPropertyValuesContainer.cxx
+++ b/comphelper/source/container/IndexedPropertyValuesContainer.cxx
@@ -116,7 +116,7 @@ void SAL_CALL IndexedPropertyValuesContainer::insertByIndex( sal_Int32 nIndex, c
else
{
aItr = maProperties.end();
- sal_Int32 i(nSize - 1);
+ sal_Int32 i(nSize);
while(i > nIndex)
{
--i;
@@ -151,7 +151,7 @@ void SAL_CALL IndexedPropertyValuesContainer::removeByIndex( sal_Int32 nIndex )
else
{
aItr = maProperties.end();
- sal_Int32 i(nSize - 1);
+ sal_Int32 i(nSize);
while(i > nIndex)
{
--i;