mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Minor fix : in some condition master cross Xref are not displayed
This commit is contained in:
@@ -57,11 +57,10 @@ void MasterElement::linkToElement(Element *elmt)
|
||||
|
||||
XRefProperties xrp = diagram()->project()->defaultXRefProperties(kindInformations()["type"].toString());
|
||||
if (!m_Xref_item && xrp.snapTo() == XRefProperties::Bottom)
|
||||
m_Xref_item = new CrossRefItem(this); //create cross ref item if not yet
|
||||
else
|
||||
aboutDeleteXref();
|
||||
m_Xref_item = new CrossRefItem(this); //create cross ref item if not yet
|
||||
|
||||
emit linkedElementChanged();
|
||||
aboutDeleteXref();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user