Add a degree symbol to angle constraints.

This commit is contained in:
whitequark 2016-03-23 14:16:17 +00:00
parent 63d48e7840
commit fb0aee91ea

View File

@ -52,7 +52,7 @@ double Constraint::EllipticalInterpolation(double rx, double ry, double theta) {
std::string Constraint::Label(void) { std::string Constraint::Label(void) {
std::string result; std::string result;
if(type == ANGLE) { if(type == ANGLE) {
result = ssprintf("%.2f", valA); result = ssprintf("%.2f°", valA);
} else if(type == LENGTH_RATIO) { } else if(type == LENGTH_RATIO) {
result = ssprintf("%.3f:1", valA); result = ssprintf("%.3f:1", valA);
} else if(type == LENGTH_DIFFERENCE) { } else if(type == LENGTH_DIFFERENCE) {