mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix wrong conductor autonum/formula when linking two folio report with two existing potential.
The new potential number isn't apply well. This commit should be the last step for fix the bug report N° 118. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4830 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -130,8 +130,11 @@ class LinkReportPotentialSelector : public AbstractPotentialSelector
|
||||
|
||||
m_properties_1 = report->conductors().first()->properties();
|
||||
m_conductor_number_1 = report->conductors().first()->relatedPotentialConductors().size() + 1;
|
||||
m_seq_num_1 = report->conductors().first()->sequenceNum();
|
||||
|
||||
m_properties_2 = other_report->conductors().first()->properties();
|
||||
m_conductor_number_2 = other_report->conductors().first()->relatedPotentialConductors().size() + 1;
|
||||
m_seq_num_2 = other_report->conductors().first()->sequenceNum();
|
||||
|
||||
//We relink the report
|
||||
report->linkToElement(other_report);
|
||||
|
||||
Reference in New Issue
Block a user