|
|
|
@ -569,9 +569,9 @@ int SCH_SHEET::GetPenWidth() const |
|
|
|
|
|
|
|
void SCH_SHEET::AutoplaceFields( SCH_SCREEN* aScreen, bool aManual ) |
|
|
|
{ |
|
|
|
wxSize textSize = m_fields[ SHEETNAME ].GetTextSize(); |
|
|
|
int borderMargin = KiROUND( GetPenWidth() / 2.0 ) + 4; |
|
|
|
int margin = borderMargin + KiROUND( std::max( textSize.x, textSize.y ) * 0.5 ); |
|
|
|
VECTOR2I textSize = m_fields[SHEETNAME].GetTextSize(); |
|
|
|
int borderMargin = KiROUND( GetPenWidth() / 2.0 ) + 4; |
|
|
|
int margin = borderMargin + KiROUND( std::max( textSize.x, textSize.y ) * 0.5 ); |
|
|
|
|
|
|
|
if( IsVerticalOrientation() ) |
|
|
|
{ |
|
|
|
|