diff --git a/common/properties/pg_editors.cpp b/common/properties/pg_editors.cpp index ef71292ce0..a1fd9cfe2d 100644 --- a/common/properties/pg_editors.cpp +++ b/common/properties/pg_editors.cpp @@ -67,7 +67,7 @@ bool PG_UNIT_EDITOR::GetValueFromControl( wxVariant& aVariant, wxPGProperty* aPr long result = m_unitBinder->GetValue(); - bool changed = ( result != aVariant.GetLong() ); + bool changed = ( aVariant.IsNull() || result != aVariant.GetLong() ); if( changed ) {