fixed pt-line distance constraint bug on paste transformed

pull/1453/head
NotSure 2024-01-03 14:24:03 +02:00 committed by Paul Kahler
parent ddeab11615
commit f25bf39fa7
1 changed files with 3 additions and 1 deletions

View File

@ -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);