diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-28 23:22:03 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-12-06 00:55:50 +0000 |
commit | 74da8ee082dd4a7c2073a6174589174ec42ce9b1 (patch) | |
tree | c527db730669729ec4fe1ff4718606ad3e42a06c | |
parent | b87da122f34245dfc573a7c0aaf1ed00051fead5 (diff) |
write the customWidth property also to XLS
Change-Id: I3d12e141e1cf6c70c3fbae7b6fb25a2fabeed77b
(cherry picked from commit 776544f5e9b58a3fa05a9559c0fe9f678b2076c2)
Reviewed-on: https://gerrit.libreoffice.org/31660
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xltable.hxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index bb553a440cf3..239c9a648395 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -1620,9 +1620,9 @@ XclExpColinfo::XclExpColinfo( const XclExpRoot& rRoot, // column flags ::set_flag( mnFlags, EXC_COLINFO_HIDDEN, rDoc.ColHidden(nScCol, nScTab) ); - // TODO Do we need to save customWidth information also for .xls (with mnFlags)? XclExpDefcolwidth defColWidth = XclExpDefcolwidth( rRoot ); mbCustomWidth = !defColWidth.IsDefWidth( mnWidth ); + set_flag(mnFlags, EXC_COLINFO_CUSTOMWIDTH, mbCustomWidth); // outline data rOutlineBfr.Update( nScCol ); diff --git a/sc/source/filter/inc/xltable.hxx b/sc/source/filter/inc/xltable.hxx index c3beff09694e..4d06dd250abb 100644 --- a/sc/source/filter/inc/xltable.hxx +++ b/sc/source/filter/inc/xltable.hxx @@ -141,6 +141,7 @@ const sal_uInt16 EXC_DEFCOLWIDTH_DEF = 10; const sal_uInt16 EXC_ID_COLINFO = 0x007D; const sal_uInt16 EXC_COLINFO_HIDDEN = 0x0001; +const sal_uInt16 EXC_COLINFO_CUSTOMWIDTH = 0x0002; const sal_uInt16 EXC_COLINFO_COLLAPSED = 0x1000; // (0x0080) GUTS -------------------------------------------------------------- |