PCB_PAINTER: Do not draw board outlines area for FPHOLDER boards

Only the board editor has a board outlines area and controls to show/hide
this draw area.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21199
This commit is contained in:
jean-pierre charras
2025-06-27 09:45:53 +02:00
parent 2564e5511f
commit 96e4c8454a
+7
View File
@@ -3014,6 +3014,13 @@ void PCB_PAINTER::draw( const PCB_BOARD_OUTLINE* aBoardOutline, int aLayer )
if( !aBoardOutline->HasOutline() )
return;
// aBoardOutline makes sense only for the board editor. for fp holder boards
// there are no board outlines area.
const BOARD* brd = aBoardOutline->GetBoard();
if( !brd || brd->GetBoardUse() == BOARD_USE::FPHOLDER )
return;
GAL_SCOPED_ATTRS scopedAttrs( *m_gal, GAL_SCOPED_ATTRS::ALL_ATTRS );
m_gal->Save();