[TD]fix double units in dxf page export

This commit is contained in:
Wanderer Fan
2022-03-21 13:47:29 -04:00
committed by WandererFan
parent 21c3347af1
commit bb779f8ee2

View File

@@ -718,12 +718,7 @@ private:
if (dvd->isMultiValueSchema()) {
sDimText = dvd->getFormattedDimensionValue(0); //don't format multis
} else {
sDimText = dvd->getFormattedDimensionValue(1); //just the number pref/spec/suf
if (dvd->showUnits()) {
std::string unitText = dvd->getFormattedDimensionValue(
2);
sDimText += " " + unitText;
}
sDimText = dvd->getFormattedDimensionValue(1);
}
char* dimText = &sDimText[0u]; //hack for const-ness
float gap = 5.0; //hack. don't know font size here.