Fixes: https://bugs.launchpad.net/kicad/+bug/1751646
From e648158336af3f90c41bf17a9a2b387b5b095191 Mon Sep 17 00:00:00 2001 From: Jon Evans <j...@craftyjon.com> 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 a8bf21765..0194019c6 100644 --- a/pcbnew/router/router_preview_item.cpp +++ b/pcbnew/router/router_preview_item.cpp @@ -21,6 +21,7 @@ #include <deque> #include <gal/color4d.h> +#include <view/view.h> #include <geometry/shape_rect.h> #include <geometry/shape_convex.h> @@ -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; -- 2.14.1
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp