Fix xrefproperties bug

Change only slave Xrefproperties is not applied due to overload operator
== who don't compare the formula string of slave.
This commit is contained in:
joshua 2021-05-15 18:58:26 +02:00
parent ecf783332a
commit d7a49b9e74

View File

@ -187,13 +187,14 @@ QHash<QString, XRefProperties> XRefProperties::defaultProperties()
}
bool XRefProperties::operator ==(const XRefProperties &xrp) const{
return (m_show_power_ctc == xrp.m_show_power_ctc &&
m_display == xrp.m_display &&
m_snap_to == xrp.m_snap_to &&
m_prefix == xrp.m_prefix &&
m_master_label == xrp.m_master_label &&
m_offset == xrp.m_offset &&
m_xref_pos == xrp.m_xref_pos );
return (m_show_power_ctc == xrp.m_show_power_ctc
&& m_display == xrp.m_display
&& m_snap_to == xrp.m_snap_to
&& m_prefix == xrp.m_prefix
&& m_master_label== xrp.m_master_label
&& m_offset == xrp.m_offset
&& m_xref_pos == xrp.m_xref_pos
&& m_slave_label == xrp.m_slave_label);
}
bool XRefProperties::operator !=(const XRefProperties &xrp) const