From 45ca53c7a8fd0704c1d58cf93360e3b6beb69dda Mon Sep 17 00:00:00 2001 From: Kellermorph Date: Sun, 20 Sep 2026 21:56:43 +0200 Subject: [PATCH] fix: inherit conductor line style (pen style) when linking cross-references ApplyForEqualAttributes() was missing the 'style' attribute, causing dashed/dash-dotted line styles to be lost when potentials are merged via folio reports. Only color and other properties were copied. Add style copy in single-element case and equality check in multi-element case, matching the existing pattern for other attributes. --- sources/conductorproperties.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sources/conductorproperties.cpp b/sources/conductorproperties.cpp index da3f849d5..585839b57 100644 --- a/sources/conductorproperties.cpp +++ b/sources/conductorproperties.cpp @@ -499,6 +499,7 @@ void ConductorProperties::applyForEqualAttributes(QList lis horiz_rotate_text = cp.horiz_rotate_text; m_vertical_alignment = cp.m_vertical_alignment; m_horizontal_alignment = cp.m_horizontal_alignment; + style = cp.style; return; } @@ -555,6 +556,18 @@ void ConductorProperties::applyForEqualAttributes(QList lis m_dash_size = i_value; equal = true; + //style + Qt::PenStyle pen_style; + pen_style = clist.first().style; + for(ConductorProperties cp : clist) + { + if (cp.style != pen_style) + equal = false; + } + if (equal) + style = pen_style; + equal = true; + //text s_value = clist.first().text; for(ConductorProperties cp : clist)