From ff0b5a288f175ac8e0216dab86378979b448edbb Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 16 Nov 2018 14:35:54 +0100 Subject: [PATCH] ZipStream: Change precision from 12 to 16 decimals ================================================== Fixes: https://forum.freecadweb.org/viewtopic.php?f=3&t=32212&start=10#p269080 --- src/Base/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Base/Writer.cpp b/src/Base/Writer.cpp index 9e71c8922d..b89c12e0ee 100644 --- a/src/Base/Writer.cpp +++ b/src/Base/Writer.cpp @@ -248,7 +248,7 @@ ZipWriter::ZipWriter(const char* FileName) //FIXME: Check whether this is correct ZipStream.imbue(std::locale::classic()); #endif - ZipStream.precision(12); + ZipStream.precision(16); ZipStream.setf(ios::fixed,ios::floatfield); } @@ -261,7 +261,7 @@ ZipWriter::ZipWriter(std::ostream& os) //FIXME: Check whether this is correct ZipStream.imbue(std::locale::classic()); #endif - ZipStream.precision(12); + ZipStream.precision(16); ZipStream.setf(ios::fixed,ios::floatfield); }