diff options
-rw-r--r-- | sc/source/filter/oox/sheetdatabuffer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx index 174842a001bc..2b9f4ce3b031 100644 --- a/sc/source/filter/oox/sheetdatabuffer.cxx +++ b/sc/source/filter/oox/sheetdatabuffer.cxx @@ -50,6 +50,7 @@ #include "document.hxx" #include "scitems.hxx" #include "formulacell.hxx" +#include "docpool.hxx" namespace oox { namespace xls { @@ -468,7 +469,8 @@ void SheetDataBuffer::finalizeImport() { ScAttrEntry aEntry; aEntry.nRow = MAXROW; - aEntry.pPattern = rDoc.GetDefPattern(); + aEntry.pPattern = rDoc.GetPattern(nScCol, 0, getSheetIndex()); + rDoc.GetPool()->Put(*aEntry.pPattern); aAttrs.push_back(aEntry); } |