summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-03-17 17:50:59 +0000
committerMichael Meeks <michael.meeks@novell.com>2011-03-17 17:50:59 +0000
commit547684a4aa90895aa9023acf9297a0b4044652f1 (patch)
tree1ae78d552273657ade53d95324ec56c4603cf46d
parente7ecb70f3a49e905633995cd49a022f3270a4f09 (diff)
fix array bounds problem that crept in from OO.ointegration/dev300_m101
-rw-r--r--chart2/source/view/main/ChartItemPool.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/ChartItemPool.cxx b/chart2/source/view/main/ChartItemPool.cxx
index 85faa64d0..2cdac8fcb 100644
--- a/chart2/source/view/main/ChartItemPool.cxx
+++ b/chart2/source/view/main/ChartItemPool.cxx
@@ -171,8 +171,8 @@ ChartItemPool::ChartItemPool():
**************************************************************************/
pItemInfos = new SfxItemInfo[SCHATTR_END - SCHATTR_START + 1];
- sal_uInt16 i;
- for( i = SCHATTR_START; i <= SCHATTR_END; i++ )
+ const sal_uInt16 nMax = SCHATTR_END - SCHATTR_START + 1;
+ for( sal_uInt16 i = 0; i < nMax; i++ )
{
pItemInfos[i]._nSID = 0;
pItemInfos[i]._nFlags = SFX_ITEM_POOLABLE;