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