[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Nov 2 16:11:22 CET 2013
sc/source/filter/oox/sheetdatabuffer.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 512a14438c4098ca2e30d0b10b6e18506c8475f1
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Sat Nov 2 17:04:34 2013 +0100
remember column style during XLSX import, fdo#70315
WE overwrote the column style that was set earlier with the default
style.
Change-Id: I4c02e1cdd3e72f27d75b8153e2af45b5658ff456
diff --git a/sc/source/filter/oox/sheetdatabuffer.cxx b/sc/source/filter/oox/sheetdatabuffer.cxx
index 7f9c8e4..f55d365 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);
}
More information about the Libreoffice-commits
mailing list