mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
bug fix: segfault when load project with folio report linked but without the same potential text
(Assert QList(), in conductor.cpp) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2815 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,7 +19,6 @@
|
||||
#include "elementtextitem.h"
|
||||
#include "diagramposition.h"
|
||||
#include "qetproject.h"
|
||||
#include "conductorautonumerotation.h"
|
||||
|
||||
ReportElement::ReportElement(const ElementsLocation &location, QString link_type,QGraphicsItem *qgi, Diagram *s, int *state) :
|
||||
CustomElement(location, qgi, s, state)
|
||||
@@ -50,7 +49,7 @@ void ReportElement::linkToElement(Element * elmt) {
|
||||
if (connected_elements.first() == elmt) i = false;
|
||||
}
|
||||
|
||||
//ensure elmt is a inverse report of this element
|
||||
//ensure elmt is an inverse report of this element
|
||||
if ((elmt->linkType() == inverse_report) && i) {
|
||||
unlinkAllElements();
|
||||
connected_elements << elmt;
|
||||
@@ -58,10 +57,6 @@ void ReportElement::linkToElement(Element * elmt) {
|
||||
connect(diagram()->project(), SIGNAL(projectDiagramsOrderChanged(QETProject*,int,int)), this, SLOT(updateLabel()));
|
||||
updateLabel();
|
||||
elmt->linkToElement(this);
|
||||
//Check if text of this potential is identical.
|
||||
if (conductors().count() && elmt->conductors().count()) {
|
||||
ConductorAutoNumerotation::checkPotential(conductors().first());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user