← Back to team overview

kicad-developers team mailing list archive

patch: pcbnew, hide text anchors while printing

 

This patch hides text anchors while printing board in pcbnew.

Every time I print board silkscreen in pcbnew first page always goes to trashcan because of points in the center of reference designators and other texts. Who needs text anchors on printed paper?

--
Regards,
  Sergey A. Borshch            mailto: sb-sf@xxxxxxxxxxxxxxx
    SB ELDI ltd. Riga, Latvia
=== modified file 'pcbnew/print_board_functions.cpp'
--- pcbnew/print_board_functions.cpp	2013-01-13 00:04:00 +0000
+++ pcbnew/print_board_functions.cpp	2013-03-09 02:19:53 +0000
@@ -180,6 +180,8 @@
     m_DisplayPadNum = DisplayOpt.DisplayPadNum = false;
     bool nctmp = GetBoard()->IsElementVisible( NO_CONNECTS_VISIBLE );
     GetBoard()->SetElementVisibility( NO_CONNECTS_VISIBLE, false );
+    bool anchorsTmp = GetBoard()->IsElementVisible( ANCHOR_VISIBLE );
+    GetBoard()->SetElementVisibility( ANCHOR_VISIBLE, false );
     DisplayOpt.DisplayPadIsol    = false;
     m_DisplayModEdge = DisplayOpt.DisplayModEdge    = FILLED;
     m_DisplayModText = DisplayOpt.DisplayModText    = FILLED;
@@ -325,6 +327,7 @@
     m_DisplayModEdge = DisplayOpt.DisplayModEdge;
     m_DisplayModText = DisplayOpt.DisplayModText;
     GetBoard()->SetElementVisibility(NO_CONNECTS_VISIBLE, nctmp);
+    GetBoard()->SetElementVisibility(ANCHOR_VISIBLE, anchorsTmp);
 }
 
 

Follow ups