Kaydet (Commit) 709053fc authored tarafından Eike Rathke's avatar Eike Rathke

Revert "attempt to fix Linux-rpm_deb-x86_71-TDF tinderbox build for 5-2, tdf#101363"

This reverts commit 39aa5c2c.

Turns out the cause is something completely different..
üst ed4da005
......@@ -1691,14 +1691,7 @@ void XclExpColinfo::SaveXml( XclExpXmlStream& rStrm )
// 100 number - used to limit precision to 0.01 with formula =Truncate( {value}*100+0.5 ) / 100
// 0.5 number (0.005 to output value) - used to increase value before truncating,
// to avoid situation when 2.997 will be truncated to 2.99 and not to 3.00
// First create an integer value to not have a double floating point with
// something optimized away or into.. yes that was significant in a
// Linux-rpm_deb-x86_71-TDF tinderbox build that oddly produced 24.23
// instead of 24 in a test case but only for 5-2 ...
const sal_Int32 nTruncatedInt = static_cast<sal_Int32>(std::trunc( nExcelColumnWidth * 100.0 + 0.5 ));
const double nTruncatedExcelColumnWidth = static_cast<double>(nTruncatedInt) / 100.0;
const double nTruncatedExcelColumnWidth = std::trunc( nExcelColumnWidth * 100.0 + 0.5 ) / 100.0;
rStrm.GetCurrentStream()->singleElement( XML_col,
// OOXTODO: XML_bestFit,
XML_collapsed, XclXmlUtils::ToPsz( ::get_flag( mnFlags, EXC_COLINFO_COLLAPSED ) ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment