FIxed #997 (display of negative extensions of paths) (#999)

This commit is contained in:
Matthias Köfferlein 2022-02-12 17:02:59 +01:00 committed by Matthias Koefferlein
parent f5b88fe539
commit e9f35f56d5
1 changed files with 4 additions and 4 deletions

View File

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