diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-02 17:04:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-02 17:09:11 +0100 |
commit | 512a14438c4098ca2e30d0b10b6e18506c8475f1 (patch) | |
tree | 57a09381a4dd86945673b7169b1b5d1a2aaf6676 | |
parent | 2c92030ff07aff9b10e49844343390925b81545c (diff) |
remember column style during XLSX import, fdo#70315
WE overwrote the column style that was set earlier with the default
style.
Change-Id: I4c02e1cdd3e72f27d75b8153e2af45b5658ff456
-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 7f9c8e44336a..f55d365eb1e0 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 { @@ -463,7 +464,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); } |