Skip to content

Commit

Permalink
fixed pt-line distance constraint bug on paste transformed
Browse files Browse the repository at this point in the history
  • Loading branch information
Not4sure authored and phkahler committed Jan 3, 2024
1 parent ddeab11 commit f25bf39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ void GraphicsWindow::PasteClipboard(Vector trans, double theta, double scale) {
case Constraint::Type::COMMENT:
c.disp.offset = c.disp.offset.Plus(trans);
break;
case Constraint::Type::PT_PT_DISTANCE:
case Constraint::Type::PT_LINE_DISTANCE:
c.valA *= scale;
break;
case Constraint::Type::PT_PT_DISTANCE:
case Constraint::Type::PROJ_PT_DISTANCE:
case Constraint::Type::DIAMETER:
c.valA *= fabs(scale);
Expand Down

0 comments on commit f25bf39

Please sign in to comment.