From 6f0505f19cd033bf26ef5fd86b5c573459486df9 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 165a9f59b1..511ebd5c08 100644 --- a/eeschema/autoplace_fields.cpp +++ b/eeschema/autoplace_fields.cpp @@ -65,10 +65,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 @@ -219,10 +219,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 )