mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user