Fix wrong display in widget used to link folio report

This commit is contained in:
joshua
2023-03-01 19:33:26 +01:00
parent 32e9ee9f36
commit 03094e1328

View File

@@ -296,7 +296,7 @@ void LinkSingleElementWidget::buildTree()
QStringList search_list;
QStringList str_list;
if (elmt->conductors().size())
if (!elmt->conductors().isEmpty())
{
ConductorProperties cp = elmt->conductors().first()->properties();
str_list << cp.text;
@@ -316,7 +316,7 @@ void LinkSingleElementWidget::buildTree()
search_list << str_list.last();
}
else
str_list << "" << "" << "";
str_list << "" << "" << "" << "" << "";
if (Diagram *diag = elmt->diagram())
{