Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5823 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2019-04-03 16:06:21 +00:00
parent 106903126d
commit 4474434fbd

View File

@@ -23,6 +23,7 @@
#include "potentialselectordialog.h"
#include "diagramcommands.h"
#include "conductorautonumerotation.h"
#include "element.h"
#include <QPolygonF>
@@ -160,6 +161,13 @@ QList<Conductor *> ConductorCreator::existingPotential()
}
}
}
else if (t->parentElement()->linkType() & Element::AllReport && !t->parentElement()->isFree())
{
Element *linked_report = t->parentElement()->linkedElements().first();
if (!linked_report->conductors().isEmpty()) {
c_list.append(linked_report->conductors().first());
}
}
}
return c_list;