summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Kosiorek <gang65@openoffice.org>2010-10-21 23:25:11 +0200
committerBartosz Kosiorek <gang65@openoffice.org>2010-10-21 23:25:11 +0200
commit853eb9487eae742be2f739bfda656c1310f3cbee (patch)
treebcde9ac05f7503aea47a56f087b12d847b62de83
parent873bded8428709ad52045487827c5acd532a7fcc (diff)
svarray: #i112395#: fix GetItem->GetItem2
-rw-r--r--sc/source/core/data/docpool.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index f341aa4b52fe..d0756d25487f 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -658,10 +658,10 @@ void ScDocumentPool::CellStyleCreated( const String& rName )
// Calling StyleSheetChanged isn't enough because the pool may still contain items
// for undo or clipboard content.
- sal_uInt16 nCount = GetItemCount(ATTR_PATTERN);
- for (sal_uInt16 i=0; i<nCount; i++)
+ sal_uInt32 nCount = GetItemCount2(ATTR_PATTERN);
+ for (sal_uInt32 i=0; i<nCount; i++)
{
- ScPatternAttr* pPattern = (ScPatternAttr*)GetItem(ATTR_PATTERN, i);
+ ScPatternAttr* pPattern = (ScPatternAttr*)GetItem2(ATTR_PATTERN, i);
if ( pPattern && pPattern->GetStyleSheet() == NULL )
{
const String* pStyleName = pPattern->GetStyleName();