Treat dimensions in fp as text for bbox calculations

Fixes https://gitlab.com/kicad/code/kicad/-/issues/13976
This commit is contained in:
qu1ck 2023-02-18 13:04:12 +00:00 committed by Jon Evans
parent 07f79208b9
commit c7bb6f5778
1 changed files with 7 additions and 0 deletions

View File

@ -850,6 +850,13 @@ const BOX2I FOOTPRINT::GetBoundingBox( bool aIncludeText, bool aIncludeInvisible
if( item->Type() == PCB_FP_TEXT_T )
continue;
// Treat dimension objects as text
if( !aIncludeText
&& ( item->Type() == PCB_FP_DIM_ALIGNED_T || item->Type() == PCB_FP_DIM_CENTER_T
|| item->Type() == PCB_FP_DIM_LEADER_T || item->Type() == PCB_FP_DIM_ORTHOGONAL_T
|| item->Type() == PCB_FP_DIM_RADIAL_T ) )
continue;
bbox.Merge( item->GetBoundingBox() );
}