mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 10:30:53 +01:00
Fix crash
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4828 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1036,6 +1036,12 @@ void Diagram::removeItem(QGraphicsItem *item)
|
||||
|
||||
switch (item->type())
|
||||
{
|
||||
case Element::Type:
|
||||
{
|
||||
Element *elmt = static_cast<Element*>(item);
|
||||
elmt->unlinkAllElements();
|
||||
}
|
||||
break;
|
||||
case Conductor::Type:
|
||||
{
|
||||
Conductor *conductor = static_cast<Conductor *>(item);
|
||||
|
||||
Reference in New Issue
Block a user