From b09ab2daab51f93bf1a62d4012913751725a9eec Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Tue, 4 Jul 2023 08:08:48 +0300 Subject: [PATCH] Don't duplicate footprint bookmarks when plotting multiple PCB layers. --- pcbnew/plot_board_layers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/plot_board_layers.cpp b/pcbnew/plot_board_layers.cpp index e3580530b6..99e041cf5f 100644 --- a/pcbnew/plot_board_layers.cpp +++ b/pcbnew/plot_board_layers.cpp @@ -108,6 +108,8 @@ void PlotInteractiveLayer( BOARD* aBoard, PLOTTER* aPlotter, const PCB_PLOT_PARA fp->GetKeywords() ) ); aPlotter->HyperlinkMenu( fp->GetBoundingBox(), properties ); + + aPlotter->Bookmark( fp->GetBoundingBox(), fp->GetReference(), _( "Footprints" ) ); } } @@ -542,7 +544,6 @@ void PlotStandardLayer( BOARD* aBoard, PLOTTER* aPlotter, LSET aLayerMask, } aPlotter->EndBlock( nullptr ); - aPlotter->Bookmark( footprint->GetBoundingBox(), footprint->GetReference(), _( "Footprints" ) ); } // Plot vias on copper layers, and if aPlotOpt.GetPlotViaOnMaskLayer() is true,