Display and edit length difference constraints as lengths.

Before this commit, they worked sort of like length ratio
constraints, leading to wildly incorrect results in inch mode.
This commit is contained in:
whitequark 2016-04-16 01:27:50 +00:00
parent bd51a9edac
commit 7a01c840d3
2 changed files with 0 additions and 3 deletions

View File

@ -55,8 +55,6 @@ std::string Constraint::Label(void) {
result = ssprintf("%.2f°", valA);
} else if(type == LENGTH_RATIO) {
result = ssprintf("%.3f:1", valA);
} else if(type == LENGTH_DIFFERENCE) {
result = ssprintf("%.3f", valA);
} else if(type == COMMENT) {
result = comment;
} else if(type == DIAMETER) {

View File

@ -1264,7 +1264,6 @@ void GraphicsWindow::MouseLeftDoubleClick(double mx, double my) {
case Constraint::ANGLE:
case Constraint::LENGTH_RATIO:
case Constraint::LENGTH_DIFFERENCE:
editValue = ssprintf("%.3f", c->valA);
editMinWidthChar = 5;
break;