Don't eval empty string.
Fixes https://gitlab.com/kicad/code/kicad/issues/13756
(cherry picked from commit 79f13ea9c7
)
This commit is contained in:
parent
85544d109c
commit
b3c6f559b2
|
@ -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