diff --git a/src/edt/edt/edtPropertiesPages.cc b/src/edt/edt/edtPropertiesPages.cc index db756da64..bbfe7197b 100644 --- a/src/edt/edt/edtPropertiesPages.cc +++ b/src/edt/edt/edtPropertiesPages.cc @@ -457,12 +457,12 @@ PolygonPropertiesPage::description (size_t entry) const size_t npts = count_polygon_points (sh); if (sh.holes () == 0 && npts > 4) { - return ShapePropertiesPage::description () + " " + tl::sprintf (tl::to_string (tr ("Polygon(%d points)")), npts); + return ShapePropertiesPage::description (entry) + " " + tl::sprintf (tl::to_string (tr ("Polygon(%d points)")), npts); } else if (sh.holes () > 0) { - return ShapePropertiesPage::description () + " " + tl::sprintf (tl::to_string (tr ("Polygon(%d points, %d holes)")), npts, sh.holes ()); + return ShapePropertiesPage::description (entry) + " " + tl::sprintf (tl::to_string (tr ("Polygon(%d points, %d holes)")), npts, sh.holes ()); } else { db::CplxTrans dbu_trans (dbu (entry)); - return ShapePropertiesPage::description () + " " + tl::sprintf (tl::to_string (tr ("Polygon(%s)")), (dbu_trans * sh.polygon ()).to_string ()); + return ShapePropertiesPage::description (entry) + " " + tl::sprintf (tl::to_string (tr ("Polygon(%s)")), (dbu_trans * sh.polygon ()).to_string ()); } } @@ -639,7 +639,7 @@ BoxPropertiesPage::description (size_t entry) const { const db::Shape &sh = shape (entry); db::CplxTrans dbu_trans (dbu (entry)); - return ShapePropertiesPage::description () + " " + tl::sprintf (tl::to_string (tr ("Box(%s)")), (dbu_trans * sh.box ()).to_string ()); + return ShapePropertiesPage::description (entry) + " " + tl::sprintf (tl::to_string (tr ("Box%s")), (dbu_trans * sh.box ()).to_string ()); } void @@ -878,7 +878,7 @@ TextPropertiesPage::description (size_t entry) const { const db::Shape &sh = shape (entry); db::CplxTrans dbu_trans (dbu (entry)); - return ShapePropertiesPage::description () + " " + tl::sprintf (tl::to_string (tr ("Text(%s)")), (dbu_trans * sh.text ()).to_string ()); + return ShapePropertiesPage::description (entry) + " " + tl::sprintf (tl::to_string (tr ("Text(%s)")), (dbu_trans * sh.text ()).to_string ()); } void @@ -1028,7 +1028,7 @@ static std::string path_description (const db::Shape &sh, double dbu) std::string PathPropertiesPage::description (size_t entry) const { - return ShapePropertiesPage::description () + " " + path_description (shape (entry), dbu (entry)); + return ShapePropertiesPage::description (entry) + " " + path_description (shape (entry), dbu (entry)); } void @@ -1132,7 +1132,7 @@ EditablePathPropertiesPage::text_changed () std::string EditablePathPropertiesPage::description (size_t entry) const { - return ShapePropertiesPage::description () + " " + path_description (shape (entry), dbu (entry)); + return ShapePropertiesPage::description (entry) + " " + path_description (shape (entry), dbu (entry)); } void diff --git a/src/layui/layui/PropertiesDialog.ui b/src/layui/layui/PropertiesDialog.ui index 37f6353b1..c39a8c056 100644 --- a/src/layui/layui/PropertiesDialog.ui +++ b/src/layui/layui/PropertiesDialog.ui @@ -26,6 +26,12 @@ 0 + + + 24 + 12 + + true diff --git a/src/layui/layui/layPropertiesDialog.cc b/src/layui/layui/layPropertiesDialog.cc index 22749fdbf..f27d8da98 100644 --- a/src/layui/layui/layPropertiesDialog.cc +++ b/src/layui/layui/layPropertiesDialog.cc @@ -66,7 +66,7 @@ public: if (index.internalId () < mp_dialog->properties_pages ().size ()) { icon = mp_dialog->properties_pages () [index.internalId ()]->icon (index.row (), m_icon_width, m_icon_height); } else { - icon = mp_dialog->properties_pages () [index.internalId ()]->icon (m_icon_width, m_icon_height); + icon = mp_dialog->properties_pages () [index.row ()]->icon (m_icon_width, m_icon_height); } if (! icon.isNull ()) { return QVariant (icon);