summaryrefslogtreecommitdiff
path: root/sc/source/filter
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-07 05:00:08 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-07 05:17:09 +0100
commit95df39e382920dcd8bf86cb88f02dd219acbfa6f (patch)
tree774bf24968f3d1da0e893d492dddaace4a48c65b /sc/source/filter
parent7220b55f6347e2236e63491cd5d1ef9355c3320a (diff)
we need to use ScDocumentImport for all calls
otherwise a reallocation of the cell vector will invalidate the iterators for the position hint e.g. fdo#35208-1.xls Change-Id: I26e473c968633eb6e9cc3ecb1c8060105f5f47aa
Diffstat (limited to 'sc/source/filter')
-rw-r--r--sc/source/filter/excel/impop.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 8db86c3280eb..d9d89f2a7c72 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -320,7 +320,7 @@ void ImportExcel::ReadInteger()
maStrm >> nValue;
GetXFRangeBuffer().SetXF( aScPos, nXFIdx );
- GetDoc().SetValue(aScPos, nValue);
+ GetDocImport().setNumericCell(aScPos, nValue);
}
}
@@ -392,7 +392,7 @@ void ImportExcel::ReadBoolErr()
const ScTokenArray* pScTokArr = ErrorToFormula( nType, nValue, fValue );
ScFormulaCell* pCell = pScTokArr ? new ScFormulaCell(pD, aScPos, *pScTokArr) : new ScFormulaCell(pD, aScPos);
pCell->SetHybridDouble( fValue );
- GetDoc().SetFormulaCell(aScPos, pCell);
+ GetDocImport().setFormulaCell(aScPos, pCell);
}
}