Treat dimensions in fp as text for bbox calculations
(cherry picked from commit 1ff021bb927e9a146f57277554f370f97c07041c)
This commit is contained in:
parent
396bda5611
commit
1eb8191519
|
@ -850,6 +850,13 @@ const BOX2I FOOTPRINT::GetBoundingBox( bool aIncludeText, bool aIncludeInvisible
|
||||||
if( item->Type() == PCB_FP_TEXT_T )
|
if( item->Type() == PCB_FP_TEXT_T )
|
||||||
continue;
|
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() );
|
bbox.Merge( item->GetBoundingBox() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue