summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xiname.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xiname.cxx')
-rw-r--r--sc/source/filter/excel/xiname.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx
index c1bee5af50f6..bb93e8865904 100644
--- a/sc/source/filter/excel/xiname.cxx
+++ b/sc/source/filter/excel/xiname.cxx
@@ -236,7 +236,7 @@ void XclImpName::ConvertTokens()
void XclImpName::InsertName(const ScTokenArray* pArray)
{
// create the Calc name data
- ScRangeData* pData = new ScRangeData(GetDocPtr(), maScName, *pArray, ScAddress(), meNameType);
+ ScRangeData* pData = new ScRangeData(&GetDocRef(), maScName, *pArray, ScAddress(), meNameType);
pData->GuessPosition(); // calculate base position for relative refs
pData->SetIndex( mnNameIndex ); // used as unique identifier in formulas
if (mnXclTab == EXC_NAME_GLOBAL)