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:
parent
bd51a9edac
commit
7a01c840d3
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user