From f25bf39fa7293da1421e682e1f728e57ccb6c939 Mon Sep 17 00:00:00 2001 From: NotSure Date: Wed, 3 Jan 2024 14:24:03 +0200 Subject: [PATCH] fixed pt-line distance constraint bug on paste transformed --- src/clipboard.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/clipboard.cpp b/src/clipboard.cpp index 69a624c3..0275b170 100644 --- a/src/clipboard.cpp +++ b/src/clipboard.cpp @@ -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);