From 31e78d670de8012101d827c1fd2641354c583bc0 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 25 Feb 2018 18:17:59 -0500 Subject: [PATCH] Ensure ROUTER_PREVIEW_ITEM draws on top of all normal layers Fixes: lp:1751646 * https://bugs.launchpad.net/kicad/+bug/1751646 --- pcbnew/router/router_preview_item.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pcbnew/router/router_preview_item.cpp b/pcbnew/router/router_preview_item.cpp index a8bf217650..0194019c62 100644 --- a/pcbnew/router/router_preview_item.cpp +++ b/pcbnew/router/router_preview_item.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -269,6 +270,7 @@ void ROUTER_PREVIEW_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const case SH_POLY_SET: case SH_COMPOUND: + case SH_ARC: break; // Not yet in use } } @@ -341,6 +343,6 @@ const COLOR4D ROUTER_PREVIEW_ITEM::assignColor( int aStyle ) const return color; } -const int ROUTER_PREVIEW_ITEM::ClearanceOverlayDepth = -300; -const int ROUTER_PREVIEW_ITEM::BaseOverlayDepth = -310; -const int ROUTER_PREVIEW_ITEM::ViaOverlayDepth = -346; +const int ROUTER_PREVIEW_ITEM::ClearanceOverlayDepth = -VIEW::VIEW_MAX_LAYERS - 10; +const int ROUTER_PREVIEW_ITEM::BaseOverlayDepth = -VIEW::VIEW_MAX_LAYERS - 20; +const int ROUTER_PREVIEW_ITEM::ViaOverlayDepth = -VIEW::VIEW_MAX_LAYERS - 50;