Eeschema: fix typo in min image size

This commit is contained in:
John Beard
2024-09-30 11:44:01 +01:00
parent 460e575457
commit 5df2fa2921
+2 -2
View File
@@ -919,8 +919,8 @@ void EE_POINT_EDITOR::updateParentItem( bool aSnapToGrid ) const
// Clamp the scaling to a minimum of 50 mils
VECTOR2I newSize = oldSize * ratio;
double newWidth = std::max( newSize.x, EDA_UNIT_UTILS::Mils2IU( pcbIUScale, 50 ) );
double newHeight = std::max( newSize.y, EDA_UNIT_UTILS::Mils2IU( pcbIUScale, 50 ) );
double newWidth = std::max( newSize.x, EDA_UNIT_UTILS::Mils2IU( schIUScale, 50 ) );
double newHeight = std::max( newSize.y, EDA_UNIT_UTILS::Mils2IU( schIUScale, 50 ) );
ratio = std::min( newWidth / oldSize.x, newHeight / oldSize.y );
// Also handles the origin offset