Minor fix : in some condition master cross Xref are not displayed

This commit is contained in:
Claveau Joshua
2020-04-08 19:27:24 +02:00
parent 4774389ee0
commit 94aa5c0247
2 changed files with 2 additions and 6 deletions

View File

@@ -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();

View File

@@ -58,10 +58,9 @@ 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();
} }
} }