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;