From 4474434fbd6ebe3174598ba6047c284c581d56c7 Mon Sep 17 00:00:00 2001 From: blacksun Date: Wed, 3 Apr 2019 16:06:21 +0000 Subject: [PATCH] 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 --- sources/utils/conductorcreator.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sources/utils/conductorcreator.cpp b/sources/utils/conductorcreator.cpp index 2b09ba61b..4a950d07a 100644 --- a/sources/utils/conductorcreator.cpp +++ b/sources/utils/conductorcreator.cpp @@ -23,6 +23,7 @@ #include "potentialselectordialog.h" #include "diagramcommands.h" #include "conductorautonumerotation.h" +#include "element.h" #include @@ -160,6 +161,13 @@ QList 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;