From b3c6f559b2a54ab8c124ba4f9405f7c6ca3e3228 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 26 Feb 2023 23:13:29 +0000 Subject: [PATCH] Don't eval empty string. Fixes https://gitlab.com/kicad/code/kicad/issues/13756 (cherry picked from commit 79f13ea9c70617693013a01caab696c324e219f8) --- eeschema/sim/sim_property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/sim/sim_property.cpp b/eeschema/sim/sim_property.cpp index ab902c386b..b5b227d747 100644 --- a/eeschema/sim/sim_property.cpp +++ b/eeschema/sim/sim_property.cpp @@ -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() );