diff --git a/common/tool/tool_action.cpp b/common/tool/tool_action.cpp index 2edc2f2340..b88817ae49 100644 --- a/common/tool/tool_action.cpp +++ b/common/tool/tool_action.cpp @@ -149,7 +149,7 @@ wxString TOOL_ACTION::GetMenuLabel() const { if( m_menuLabel.has_value() ) return wxGetTranslation( m_menuLabel.value() ); - + return GetFriendlyName(); } diff --git a/libs/kimath/include/math/util.h b/libs/kimath/include/math/util.h index 00e4ee154c..f5626b9ce9 100644 --- a/libs/kimath/include/math/util.h +++ b/libs/kimath/include/math/util.h @@ -3,12 +3,12 @@ * * Copyright (c) 2005 Michael Niedermayer * Copyright (C) CERN - * Copyright (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors. * * @author Tomasz Wlostowski * * The equals() method to compare two floating point values adapted from - * AlmostEqualRelativeAndAbs() on + * AlmostEqualRelativeAndAbs() on * https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ * (C) Bruce Dawson subject to the Apache 2.0 license. * @@ -90,7 +90,7 @@ constexpr ret_type KiROUND( fp_type v ) if( ret > std::numeric_limits::max() ) { kimathLogOverflow( double( v ), typeid( ret_type ).name() ); - + return std::numeric_limits::max() - 1; } else if( ret < std::numeric_limits::lowest() )