Fix DXF importer wrongly prioritizes the MEASUREMENT variable
This commit is contained in:
committed by
Yorik van Havre
parent
fc08e0a6f0
commit
2c4c9ac520
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user