From c1fdc1adaaa3050f3d478e8b8f7429ea32cedf3f Mon Sep 17 00:00:00 2001 From: joshua Date: Sat, 15 May 2021 18:58:26 +0200 Subject: [PATCH] Fix xrefproperties bug Change only slave Xrefproperties is not applied due to overload operator == who don't compare the formula string of slave. --- sources/properties/xrefproperties.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/sources/properties/xrefproperties.cpp b/sources/properties/xrefproperties.cpp index 06c513c19..15e142ead 100644 --- a/sources/properties/xrefproperties.cpp +++ b/sources/properties/xrefproperties.cpp @@ -187,13 +187,14 @@ QHash 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