diff --git a/common/pg_properties.cpp b/common/pg_properties.cpp index 199264668b..da3ecfdfae 100644 --- a/common/pg_properties.cpp +++ b/common/pg_properties.cpp @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -63,6 +64,7 @@ wxPGProperty* PGPropertyFactory( const PROPERTY_BASE* aProperty ) default: wxFAIL; + KI_FALLTHROUGH; /* fall through */ case PROPERTY_DISPLAY::PT_DEFAULT: { @@ -186,7 +188,7 @@ bool PGPROPERTY_DISTANCE::StringToDistance( wxVariant& aVariant, const wxString& break; case EDA_UNITS::UNSCALED: - newValueIU = value; + newValueIU = KiROUND( value ); break; default: