Fix DXF importer wrongly prioritizes the MEASUREMENT variable

This commit is contained in:
Yorik van Havre
2023-12-14 10:27:54 +01:00
committed by Yorik van Havre
parent fc08e0a6f0
commit 2c4c9ac520

View File

@@ -2413,6 +2413,9 @@ bool CDxfRead::ReadUnits()
int n = 0;
if (sscanf(m_record_data, "%d", &n) == 1) {
m_eUnits = eDxfUnits_t(n);
if (m_eUnits != eUnspecified) {
m_measurement_inch = false; // prioritize INSUNITS over MEASUREMENT variable
}
return (true);
} // End if - then
else {