mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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:
parent
32048d3b1e
commit
68ab95ad43
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user