[Import]fix rounding errors in dxf export

This commit is contained in:
wandererfan
2024-01-16 21:00:53 -05:00
committed by WandererFan
parent ec7e3ea364
commit 0e53aafa86

View File

@@ -63,6 +63,10 @@ CDxfWrite::CDxfWrite(const char* filepath)
return;
}
m_ofs->imbue(std::locale("C"));
// use lots of digits to avoid rounding errors
m_ssEntity->setf(std::ios::fixed);
m_ssEntity->precision(9);
}
CDxfWrite::~CDxfWrite()