summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-02 17:04:34 +0100
committerEike Rathke <erack@redhat.com>2013-11-02 17:26:17 -0500
commit8c4f9aff76e931613c3e6a99879c2b5353231853 (patch)
tree34f4fc8cefd2f1eae4220c2eea24715ae7e8ed1d
parentde67c6d6159c0801b0959d77c2c8a8b7fb148b03 (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 (cherry picked from commit 512a14438c4098ca2e30d0b10b6e18506c8475f1) Reviewed-on: https://gerrit.libreoffice.org/6528 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/filter/oox/sheetdatabuffer.cxx4
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);
}