mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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 search_list;
|
||||||
QStringList str_list;
|
QStringList str_list;
|
||||||
|
|
||||||
if (elmt->conductors().size())
|
if (!elmt->conductors().isEmpty())
|
||||||
{
|
{
|
||||||
ConductorProperties cp = elmt->conductors().first()->properties();
|
ConductorProperties cp = elmt->conductors().first()->properties();
|
||||||
str_list << cp.text;
|
str_list << cp.text;
|
||||||
@@ -316,7 +316,7 @@ void LinkSingleElementWidget::buildTree()
|
|||||||
search_list << str_list.last();
|
search_list << str_list.last();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
str_list << "" << "" << "";
|
str_list << "" << "" << "" << "" << "";
|
||||||
|
|
||||||
if (Diagram *diag = elmt->diagram())
|
if (Diagram *diag = elmt->diagram())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user