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:
blacksun
2017-01-02 18:46:19 +00:00
parent 1072d0da93
commit caf81b924b

View File

@@ -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);