From cf9fafaba5e276639dbc4904962472df2b7f4c18 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 20 Feb 2022 18:55:55 +0000 Subject: [PATCH] EEschema features need to process ~ for empty string; not EDA_TEXT. Fixes https://gitlab.com/kicad/code/kicad/issues/10918 --- common/eda_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/eda_text.cpp b/common/eda_text.cpp index 9aa0fb1f8d..5742f6c229 100644 --- a/common/eda_text.cpp +++ b/common/eda_text.cpp @@ -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;