Don't eval empty string.
Fixes https://gitlab.com/kicad/code/kicad/issues/13756
This commit is contained in:
parent
47cf26f047
commit
79f13ea9c7
|
@ -185,7 +185,7 @@ bool SIM_STRING_PROPERTY::StringToValue( wxVariant& aVariant, const wxString& aT
|
|||
|
||||
wxString text = aText;
|
||||
|
||||
if( allowEval() && m_needsEval && m_eval.Process( aText ) )
|
||||
if( !aText.IsEmpty() && allowEval() && m_needsEval && m_eval.Process( aText ) )
|
||||
{
|
||||
double value = SIM_VALUE::ToDouble( m_eval.Result().ToStdString() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue