[TD]Always show degree symbol

This commit is contained in:
wandererfan
2019-11-05 20:48:07 -05:00
committed by WandererFan
parent eeac81a26e
commit cc1392ed73

View File

@@ -652,11 +652,11 @@ std::string DrawViewDimension::getFormatedValue(int partial)
Base::Tools::toStdString(specVal) +
ssSuffix;
} else if (partial == 2) { //just the unit
if (showUnits()) {
if ((Type.isValue("Angle")) || (Type.isValue("Angle3Pt"))) {
QRegExp space(QString::fromUtf8("\\s"));
userUnits.remove(space);
}
if ((Type.isValue("Angle")) || (Type.isValue("Angle3Pt"))) {
QRegExp space(QString::fromUtf8("\\s"));
userUnits.remove(space);
result = Base::Tools::toStdString(userUnits);
} else if (showUnits()) {
result = Base::Tools::toStdString(userUnits);
} else {
result = "";