[qet] qet/qet: [5823] Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report. |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
- To: qet@xxxxxxxxxxxxxxxxxxx
- Subject: [qet] qet/qet: [5823] Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report.
- From: subversion@xxxxxxxxxxxxx
- Date: Wed, 03 Apr 2019 18:06:22 +0200
Revision: 5823
Author: blacksun
Date: 2019-04-03 18:06:21 +0200 (Wed, 03 Apr 2019)
Log Message:
-----------
Fix : when create multiple conductors with the free hand selection, the checking of existing potentiel don't search trought a folio report.
Modified Paths:
--------------
trunk/sources/utils/conductorcreator.cpp
Modified: trunk/sources/utils/conductorcreator.cpp
===================================================================
--- trunk/sources/utils/conductorcreator.cpp 2019-04-02 21:01:52 UTC (rev 5822)
+++ trunk/sources/utils/conductorcreator.cpp 2019-04-03 16:06:21 UTC (rev 5823)
@@ -23,6 +23,7 @@
#include "potentialselectordialog.h"
#include "diagramcommands.h"
#include "conductorautonumerotation.h"
+#include "element.h"
#include <QPolygonF>
@@ -160,6 +161,13 @@
}
}
}
+ 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;