summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/frmbase.cxx
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2004-06-28 16:57:17 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2004-06-28 16:57:17 +0000
commitbf827ab06e0357afefb41ab82b33c83547ad983d (patch)
treee0f606a620cbf30f1ee7035b53ab4f87b06a93b1 /sc/source/filter/excel/frmbase.cxx
parente52abc19b2a53e73f98d246db116ecee42235e48 (diff)
INTEGRATION: CWS dr18 (1.3.468); FILE MERGED
2004/06/09 11:26:35 dr 1.3.468.2: RESYNC: (1.3-1.4); FILE MERGED 2004/05/25 11:40:47 dr 1.3.468.1: #115223# check array index
Diffstat (limited to 'sc/source/filter/excel/frmbase.cxx')
-rw-r--r--sc/source/filter/excel/frmbase.cxx26
1 files changed, 16 insertions, 10 deletions
diff --git a/sc/source/filter/excel/frmbase.cxx b/sc/source/filter/excel/frmbase.cxx
index 129553e0415c..9a08d866cf8c 100644
--- a/sc/source/filter/excel/frmbase.cxx
+++ b/sc/source/filter/excel/frmbase.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: frmbase.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 10:44:14 $
+ * last change: $Author: hjs $ $Date: 2004-06-28 17:57:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -133,12 +133,15 @@ void _ScRangeListTabs::Append( SingleRefData a, const BOOL b )
bHasRanges = TRUE;
- _ScRangeList* p = ppTabLists[ a.nTab ];
+ if( a.nTab >= 0 )
+ {
+ _ScRangeList* p = ppTabLists[ a.nTab ];
- if( !p )
- p = ppTabLists[ a.nTab ] = new _ScRangeList;
+ if( !p )
+ p = ppTabLists[ a.nTab ] = new _ScRangeList;
- p->Append( a );
+ p->Append( a );
+ }
}
@@ -190,12 +193,15 @@ void _ScRangeListTabs::Append( ComplRefData a, const BOOL b )
bHasRanges = TRUE;
- _ScRangeList* p = ppTabLists[ a.Ref1.nTab ];
+ if( a.Ref1.nTab >= 0 )
+ {
+ _ScRangeList* p = ppTabLists[ a.Ref1.nTab ];
- if( !p )
- p = ppTabLists[ a.Ref1.nTab ] = new _ScRangeList;
+ if( !p )
+ p = ppTabLists[ a.Ref1.nTab ] = new _ScRangeList;
- p->Append( a );
+ p->Append( a );
+ }
}