SCH_SHEET::GetContextualTextVars() will return Project text vars.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15123
This commit is contained in:
parent
6a47fe1e3c
commit
d2f9994fc5
|
@ -229,12 +229,16 @@ void DIALOG_TEXT_PROPERTIES::getContextualTextVars( const wxString& aCrossRef,
|
|||
SCHEMATIC* schematic = m_currentItem->Schematic();
|
||||
|
||||
if( schematic && schematic->CurrentSheet().Last() )
|
||||
{
|
||||
schematic->CurrentSheet().Last()->GetContextualTextVars( aTokens );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
for( std::pair<wxString, wxString> entry : Prj().GetTextVars() )
|
||||
aTokens->push_back( entry.first );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool DIALOG_TEXT_PROPERTIES::TransferDataToWindow()
|
||||
|
|
Loading…
Reference in New Issue