Bug fix : Qet crash when load a conductor without two terminal (because the allocation of a new conductor fail)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3974 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2015-05-18 22:19:14 +00:00
parent e73bad2bd6
commit 4142f9c6a2
3 changed files with 29 additions and 11 deletions

View File

@@ -45,6 +45,8 @@ class Conductor : public QObject, public QGraphicsPathItem {
public:
Conductor(Terminal *, Terminal *);
virtual ~Conductor();
bool isValid() const;
private:
Conductor(const Conductor &);
@@ -164,6 +166,7 @@ class Conductor : public QObject, public QGraphicsPathItem {
qreal segments_squares_scale_;
/// Define whether and how the conductor should be highlighted
Highlight must_highlight_;
bool m_valid;
private:
void segmentsToPath();