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
This commit is contained in:
Jeff Young 2023-05-07 21:51:55 +01:00
parent 5dcc221950
commit 02b380da96
1 changed files with 3 additions and 7 deletions

View File

@ -64,10 +64,10 @@
#include <eeschema_settings.h>
#include <core/arraydim.h>
#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 )