From 02b380da967a71c110048c0b5b50b720d4ee6bc4 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 7 May 2023 21:51:55 +0100 Subject: [PATCH] Field bounding boxes no longer contain interline spacing. That's entirely done through FIELD_PADDING now. Fixes https://gitlab.com/kicad/code/kicad/issues/14127 --- eeschema/autoplace_fields.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/eeschema/autoplace_fields.cpp b/eeschema/autoplace_fields.cpp index c9e8d39eca..c17429ed20 100644 --- a/eeschema/autoplace_fields.cpp +++ b/eeschema/autoplace_fields.cpp @@ -64,10 +64,10 @@ #include #include -#define FIELD_PADDING schIUScale.MilsToIU( 10 ) // arbitrarily chosen for aesthetics +#define FIELD_PADDING schIUScale.MilsToIU( 15 ) // arbitrarily chosen for aesthetics #define WIRE_V_SPACING schIUScale.MilsToIU( 100 ) -#define HPADDING schIUScale.MilsToIU( 25 ) -#define VPADDING schIUScale.MilsToIU( 25 ) +#define HPADDING schIUScale.MilsToIU( 25 ) // arbitrarily chosen for aesthetics +#define VPADDING schIUScale.MilsToIU( 15 ) // arbitrarily chosen for aesthetics /** * Round up/down to the nearest multiple of n @@ -218,10 +218,6 @@ protected: max_field_width = std::max( max_field_width, field_width ); - // Remove interline spacing from field_height for last line. - if( field == visibleFields.back() ) - field_height *= 0.62; - if( !aDynamic ) total_height += WIRE_V_SPACING; else if( m_align_to_grid )