mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Fix wrong display in widget used to link folio report
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user