TD: Fix decimal separator of dimensions

When the system separator isn't '.' we want to make sure to use it.
This commit is contained in:
Tobias Ellinghaus
2020-03-13 23:02:48 +01:00
committed by WandererFan
parent 953ae1e6e9
commit 4ce9fbc57c

View File

@@ -655,6 +655,7 @@ std::string DrawViewDimension::getFormatedValue(int partial)
QChar dp = QChar::fromLatin1('.');
if (loc.decimalPoint() != dp) {
specStr.replace(dp,loc.decimalPoint());
specVal.replace(dp,loc.decimalPoint());
}
//Remove space between dimension and degree sign
if ((Type.isValue("Angle")) || (Type.isValue("Angle3Pt"))) {