EEschema features need to process ~ for empty string; not EDA_TEXT.

Fixes https://gitlab.com/kicad/code/kicad/issues/10918
This commit is contained in:
Jeff Young 2022-02-20 18:55:55 +00:00
parent 52a2d52bf0
commit 47315864c4
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ void EDA_TEXT::Empty()
void EDA_TEXT::cacheShownText() void EDA_TEXT::cacheShownText()
{ {
if( m_text.IsEmpty() || m_text == wxT( "~" ) ) // ~ is legacy empty-string token if( m_text.IsEmpty() )
{ {
m_shown_text = wxEmptyString; m_shown_text = wxEmptyString;
m_shown_text_has_text_var_refs = false; m_shown_text_has_text_var_refs = false;