From e0781244dacda54b3f30e8ddde708b25944f1344 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Fri, 2 Dec 2016 10:38:20 +0300 Subject: prevent corrupt warning in MSO - justify dimension In 2007, the document will not open. In 2013, it requires repair if is not normalized. Change-Id: I5ee5ba314944c960de90f4c9b234f8cc8056c734 Reviewed-on: https://gerrit.libreoffice.org/31524 Tested-by: Jenkins Reviewed-by: Justin Luth --- sc/source/filter/excel/xetable.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sc/source/filter/excel') diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 3350389ac1c6..fe39f238d4f9 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -1537,6 +1537,7 @@ void XclExpDimensions::SaveXml( XclExpXmlStream& rStrm ) aRange.aEnd.SetCol( (SCCOL) (mnFirstFreeXclCol-1) ); } + aRange.PutInOrder(); rStrm.GetCurrentStream()->singleElement( XML_dimension, // To be compatible with MS Office 2007, // we need full address notation format -- cgit