Advertisement
Guest User

kicad-5.1.7-pcbnew-fix-draw-order.patch

a guest
Oct 22nd, 2020
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.00 KB | None | 0 0
  1. diff -ur a/pcbnew/pcb_draw_panel_gal.cpp b/pcbnew/pcb_draw_panel_gal.cpp
  2. --- a/pcbnew/pcb_draw_panel_gal.cpp 2020-10-22 13:22:34.150434273 +0800
  3. +++ b/pcbnew/pcb_draw_panel_gal.cpp 2020-10-22 14:49:46.071736032 +0800
  4. @@ -56,13 +56,18 @@
  5.      LAYER_MOD_TEXT_FR,
  6.      LAYER_MOD_REFERENCES, LAYER_MOD_VALUES,
  7.  
  8. +   LAYER_GRID,
  9. +
  10.      LAYER_RATSNEST, LAYER_ANCHOR,
  11.      LAYER_VIAS_HOLES, LAYER_PADS_PLATEDHOLES, LAYER_NON_PLATEDHOLES,
  12.      LAYER_VIA_THROUGH, LAYER_VIA_BBLIND,
  13.      LAYER_VIA_MICROVIA, LAYER_PADS_TH,
  14.  
  15. -    LAYER_PAD_FR_NETNAMES, LAYER_PAD_FR,
  16. -    NETNAMES_LAYER_INDEX( F_Cu ), F_Cu, F_Mask, F_SilkS, F_Paste, F_Adhes, F_CrtYd, F_Fab,
  17. +   F_SilkS, F_CrtYd, F_Fab,
  18. +   LAYER_PAD_FR_NETNAMES,
  19. +   F_Paste, F_Mask, F_Adhes,
  20. +   LAYER_PAD_FR,
  21. +    NETNAMES_LAYER_INDEX( F_Cu ), F_Cu,
  22.  
  23.      NETNAMES_LAYER_INDEX( In1_Cu ),   In1_Cu,
  24.      NETNAMES_LAYER_INDEX( In2_Cu ),   In2_Cu,
  25. @@ -95,8 +100,11 @@
  26.      NETNAMES_LAYER_INDEX( In29_Cu ),  In29_Cu,
  27.      NETNAMES_LAYER_INDEX( In30_Cu ),  In30_Cu,
  28.  
  29. -    LAYER_PAD_BK_NETNAMES, LAYER_PAD_BK,
  30. -    NETNAMES_LAYER_INDEX( B_Cu ), B_Cu, B_Mask, B_Adhes, B_Paste, B_SilkS, B_CrtYd, B_Fab,
  31. +    B_SilkS, B_CrtYd, B_Fab,
  32. +   LAYER_PAD_BK_NETNAMES,
  33. +   B_Paste, B_Mask, B_Adhes,
  34. +   LAYER_PAD_BK,
  35. +    NETNAMES_LAYER_INDEX( B_Cu ), B_Cu,
  36.  
  37.      LAYER_MOD_TEXT_BK,
  38.      LAYER_WORKSHEET
  39. @@ -223,10 +231,13 @@
  40.      // Set display settings for high contrast mode
  41.      KIGFX::RENDER_SETTINGS* rSettings = m_view->GetPainter()->GetSettings();
  42.  
  43. -    SetTopLayer( aLayer );
  44. +//     SetTopLayer( aLayer );
  45. +
  46. +   setDefaultLayerOrder();
  47.  
  48.      rSettings->ClearActiveLayers();
  49.      rSettings->SetActiveLayer( aLayer );
  50. +   return;
  51.  
  52.      if( IsCopperLayer( aLayer ) )
  53.      {
  54. @@ -265,8 +276,9 @@
  55.  
  56.  void PCB_DRAW_PANEL_GAL::SetTopLayer( PCB_LAYER_ID aLayer )
  57.  {
  58. +   setDefaultLayerOrder();
  59. +   return;
  60.      m_view->ClearTopLayers();
  61. -    setDefaultLayerOrder();
  62.      m_view->SetTopLayer( aLayer );
  63.  
  64.      // Layers that should always have on-top attribute enabled
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement