From e3b8475a3da059d9654d8f46a0e10bbe0e26c7c7 Mon Sep 17 00:00:00 2001 From: Roberto Fernandez Bautista Date: Sun, 18 Dec 2022 17:06:26 +0100 Subject: [PATCH] Special case unspecified property value (i.e. <...>) Fixes https://gitlab.com/kicad/code/kicad/-/issues/13200 --- common/properties/pg_editors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/properties/pg_editors.cpp b/common/properties/pg_editors.cpp index b66eada40c..b423f80b06 100644 --- a/common/properties/pg_editors.cpp +++ b/common/properties/pg_editors.cpp @@ -94,10 +94,10 @@ void PG_UNIT_EDITOR::UpdateControl( wxPGProperty* aProperty, wxWindow* aCtrl ) c { m_unitBinder->ChangeValue( var.GetDouble() ); } - else + else if( !aProperty->IsValueUnspecified() ) { wxFAIL_MSG( wxT( "PG_UNIT_EDITOR should only be used with numeric properties!" ) ); - } + } }