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 d5ca09dffc
commit cf9fafaba5
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ bool EDA_TEXT::Replace( const wxFindReplaceData& aSearchData )
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_has_text_var_refs = false;