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:
parent
5dcc221950
commit
02b380da96
|
@ -64,10 +64,10 @@
|
||||||
#include <eeschema_settings.h>
|
#include <eeschema_settings.h>
|
||||||
#include <core/arraydim.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 WIRE_V_SPACING schIUScale.MilsToIU( 100 )
|
||||||
#define HPADDING schIUScale.MilsToIU( 25 )
|
#define HPADDING schIUScale.MilsToIU( 25 ) // arbitrarily chosen for aesthetics
|
||||||
#define VPADDING schIUScale.MilsToIU( 25 )
|
#define VPADDING schIUScale.MilsToIU( 15 ) // arbitrarily chosen for aesthetics
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Round up/down to the nearest multiple of n
|
* Round up/down to the nearest multiple of n
|
||||||
|
@ -218,10 +218,6 @@ protected:
|
||||||
|
|
||||||
max_field_width = std::max( max_field_width, field_width );
|
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 )
|
if( !aDynamic )
|
||||||
total_height += WIRE_V_SPACING;
|
total_height += WIRE_V_SPACING;
|
||||||
else if( m_align_to_grid )
|
else if( m_align_to_grid )
|
||||||
|
|
Loading…
Reference in New Issue