Don't display legacy placeholder for empty string ("~").
This commit is contained in:
parent
db8cbad2d7
commit
ceb23c3aac
|
@ -148,7 +148,11 @@ wxString SCH_FIELD::GetShownText( int aDepth ) const
|
||||||
bool processTextVars = false;
|
bool processTextVars = false;
|
||||||
wxString text = EDA_TEXT::GetShownText( &processTextVars );
|
wxString text = EDA_TEXT::GetShownText( &processTextVars );
|
||||||
|
|
||||||
if( processTextVars )
|
if( text == "~" ) // Legacy placeholder for empty string
|
||||||
|
{
|
||||||
|
text = "";
|
||||||
|
}
|
||||||
|
else if( processTextVars )
|
||||||
{
|
{
|
||||||
if( Schematic() )
|
if( Schematic() )
|
||||||
project = &Schematic()->Prj();
|
project = &Schematic()->Prj();
|
||||||
|
|
|
@ -618,7 +618,11 @@ wxString SCH_TEXT::GetShownText( int aDepth ) const
|
||||||
bool processTextVars = false;
|
bool processTextVars = false;
|
||||||
wxString text = EDA_TEXT::GetShownText( &processTextVars );
|
wxString text = EDA_TEXT::GetShownText( &processTextVars );
|
||||||
|
|
||||||
if( processTextVars )
|
if( text == "~" ) // Legacy placeholder for empty string
|
||||||
|
{
|
||||||
|
text = "";
|
||||||
|
}
|
||||||
|
else if( processTextVars )
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( Schematic(), wxEmptyString, "No parent SCHEMATIC set for SCH_TEXT!" );
|
wxCHECK_MSG( Schematic(), wxEmptyString, "No parent SCHEMATIC set for SCH_TEXT!" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue