Fix merge error.

(9.0 still has overlapping field IDs so the parent
type also has to be checked.  10.0 field IDs are
unique.)
This commit is contained in:
Jeff Young 2025-05-02 11:18:27 +01:00
parent 32048d3b1e
commit 68ab95ad43

View File

@ -1543,13 +1543,11 @@ void SCH_FIELD::Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS&
// Plot intersheet refs (only global labels have them)
if( m_parent && m_parent->Type() == SCH_GLOBAL_LABEL_T && m_id == INTERSHEET_REFS && Schematic() )
{
SCH_LABEL_BASE* label = dynamic_cast<SCH_LABEL_BASE*>( m_parent );
SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( m_parent );
std::vector<std::pair<wxString, wxString>> pages;
std::vector<wxString> pageHrefs;
BOX2I bbox = GetBoundingBox();
wxCHECK( label, /* void */ );
label->GetIntersheetRefs( &Schematic()->CurrentSheet(), &pages );
for( const auto& [ pageNumber, sheetName ] : pages )