mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix bad static cast.
Hypertext fields aren't always intersheet refs anymore.
This commit is contained in:
parent
4a41f4a525
commit
b772960717
@ -1283,9 +1283,9 @@ void SCH_FIELD::Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS&
|
|||||||
|
|
||||||
aPlotter->PlotText( textpos, color, text, attrs, font, GetFontMetrics() );
|
aPlotter->PlotText( textpos, color, text, attrs, font, GetFontMetrics() );
|
||||||
|
|
||||||
if( IsHypertext() && Schematic() )
|
if( m_id == FIELD_T::INTERSHEET_REFS && Schematic() )
|
||||||
{
|
{
|
||||||
SCH_LABEL_BASE* label = static_cast<SCH_LABEL_BASE*>( m_parent );
|
SCH_LABEL_BASE* label = dynamic_cast<SCH_LABEL_BASE*>( m_parent );
|
||||||
std::vector<std::pair<wxString, wxString>> pages;
|
std::vector<std::pair<wxString, wxString>> pages;
|
||||||
std::vector<wxString> pageHrefs;
|
std::vector<wxString> pageHrefs;
|
||||||
BOX2I bbox = GetBoundingBox();
|
BOX2I bbox = GetBoundingBox();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user