summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-04 19:25:02 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-05 15:21:07 -0500
commit9b6c3f27f441099a4d07f8ecc3845e3fde46e992 (patch)
treed188ad0f516850bffca1785f043a75544ad54a68 /sc/source/ui/docshell/docfunc.cxx
parent0df4b4a86073690ea9013645a39631289ea609a5 (diff)
Identified and tagged all places where I need to modify.
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 66b2a5b6d853..ea2722675ee8 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -4690,15 +4690,18 @@ BOOL ScDocFunc::InsertNameList( const ScAddress& rStartPos, BOOL bApi )
ScDocument* pUndoDoc = NULL;
ScRangeName* pList = pDoc->GetRangeName();
- USHORT nCount = pList->GetCount();
USHORT nValidCount = 0;
USHORT i;
+ USHORT nCount = pList->size();
+#if NEW_RANGE_NAME
+#else
for (i=0; i<nCount; i++)
{
ScRangeData* pData = (*pList)[i];
if ( !pData->HasType( RT_DATABASE ) && !pData->HasType( RT_SHARED ) )
++nValidCount;
}
+#endif
if (nValidCount)
{