diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-03-17 17:50:59 +0000 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-03-18 17:35:05 +0100 |
commit | d8420530bc7002ab871ab5d0a3c98674510ab82f (patch) | |
tree | 53a28f72dfa3b69a8c32e97a4a6c93ca3d9260f0 /chart2 | |
parent | 156784064adb7988fd860a03046a1dce6ab55dec (diff) |
fix array bounds problem that crept in from OO.o
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartItemPool.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/main/ChartItemPool.cxx b/chart2/source/view/main/ChartItemPool.cxx index c467634aff6d..0e8c53566098 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; |