From e9f35f56d52e804dc5cd71c83730208c66ece52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Sat, 12 Feb 2022 17:02:59 +0100 Subject: [PATCH] FIxed #997 (display of negative extensions of paths) (#999) --- src/edt/edt/edtPropertiesPages.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/edt/edt/edtPropertiesPages.cc b/src/edt/edt/edtPropertiesPages.cc index c71b8bf2a..c779d0014 100644 --- a/src/edt/edt/edtPropertiesPages.cc +++ b/src/edt/edt/edtPropertiesPages.cc @@ -946,8 +946,8 @@ PathPropertiesPage::do_update (const db::Shape &shape, double dbu, const std::st } width_le->setText (tl::to_qstring (coord_to_string (t.ctrans (path.width ()), dbu, du))); - start_ext_le->setText (tl::to_qstring (coord_to_string (t.ctrans (path.extensions ().first), dbu, du))); - end_ext_le->setText (tl::to_qstring (coord_to_string (t.ctrans (path.extensions ().second), dbu, du))); + start_ext_le->setText (tl::to_qstring (coord_to_string (t.mag () * path.extensions ().first, dbu, du))); + end_ext_le->setText (tl::to_qstring (coord_to_string (t.mag () * path.extensions ().second, dbu, du))); round_cb->setChecked (path.round ()); } @@ -1043,8 +1043,8 @@ EditablePathPropertiesPage::do_update (const db::Shape &shape, double dbu, const width_le->setText (tl::to_qstring (coord_to_string (t.ctrans (w), dbu, du))); - start_ext_le->setText (tl::to_qstring (coord_to_string (t.ctrans (se), dbu, du))); - end_ext_le->setText (tl::to_qstring (coord_to_string (t.ctrans (ee), dbu, du))); + start_ext_le->setText (tl::to_qstring (coord_to_string (t.mag () * se, dbu, du))); + end_ext_le->setText (tl::to_qstring (coord_to_string (t.mag () * ee, dbu, du))); int type_choice = path_type_choice (path); if (type_cb->currentIndex () == 2) {