summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xetable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xetable.cxx')
-rw-r--r--sc/source/filter/excel/xetable.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx
index 239c9a648395..355e1a11127b 100644
--- a/sc/source/filter/excel/xetable.cxx
+++ b/sc/source/filter/excel/xetable.cxx
@@ -1695,7 +1695,7 @@ void XclExpColinfo::SaveXml( XclExpXmlStream& rStrm )
// 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 ));
+ volatile sal_Int32 nTruncatedInt = static_cast<sal_Int32>(std::trunc( nExcelColumnWidth * 100.0 + 0.5 ));
const double nTruncatedExcelColumnWidth = static_cast<double>(nTruncatedInt) / 100.0;
rStrm.GetCurrentStream()->singleElement( XML_col,