From b4b7ef99e9dec50226bc98afa3985446fa85178e Mon Sep 17 00:00:00 2001 From: charras Date: Thu, 13 Aug 2009 06:18:06 +0000 Subject: [PATCH] Small change in print function: print footprint after zones (like in BOARD::Draw) to make pads holes visible on copper zones --- pcbnew/print_board_functions.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pcbnew/print_board_functions.cpp b/pcbnew/print_board_functions.cpp index dbb459c086..909ede91de 100644 --- a/pcbnew/print_board_functions.cpp +++ b/pcbnew/print_board_functions.cpp @@ -108,14 +108,6 @@ void WinEDA_DrawPanel::PrintPage( wxDC* aDC, bool aPrint_Sheet_Ref, int aPrintMa pt_piste->Draw( this, aDC, drawmode ); } - // Draw footprints, this is done at last in order to print the pad holes in while - // after the tracks - Module = (MODULE*) Pcb->m_Modules; - for( ; Module != NULL; Module = Module->Next() ) - { - Print_Module( this, aDC, Module, drawmode, aPrintMaskLayer ); - } - /* Draw filled areas (i.e. zones) */ for( int ii = 0; ii < Pcb->GetAreaCount(); ii++ ) @@ -127,6 +119,14 @@ void WinEDA_DrawPanel::PrintPage( wxDC* aDC, bool aPrint_Sheet_Ref, int aPrintMa zone->DrawFilledArea( this, aDC, drawmode ); } + // Draw footprints, this is done at last in order to print the pad holes in white (or g_DrawBgColor) + // after the tracks and zones + Module = (MODULE*) Pcb->m_Modules; + for( ; Module != NULL; Module = Module->Next() ) + { + Print_Module( this, aDC, Module, drawmode, aPrintMaskLayer ); + } + /* Print via holes in bg color: Not sure it is good for buried or blind vias */ pt_piste = Pcb->m_Track; int color = g_DrawBgColor;