diff --git a/pcbnew/router/router_tool.cpp b/pcbnew/router/router_tool.cpp index ccbca68f26..acf755b982 100644 --- a/pcbnew/router/router_tool.cpp +++ b/pcbnew/router/router_tool.cpp @@ -1472,6 +1472,14 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) previewItem->Move( offset ); view()->AddToPreview( previewItem ); view()->Hide( &module->Value() ); + + for( ZONE_CONTAINER* zone : module->Zones() ) + { + previewItem = static_cast( zone->Clone() ); + previewItem->Move( offset ); + view()->AddToPreview( previewItem ); + view()->Hide( zone, true ); + } } } else if( evt->IsMouseUp( BUT_LEFT ) || evt->IsClick( BUT_LEFT ) ) @@ -1491,7 +1499,6 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) wxBell(); } } - } if( module ) @@ -1502,6 +1509,9 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent ) view()->Hide( &module->Reference(), false ); view()->Hide( &module->Value(), false ); + for( ZONE_CONTAINER* zone : module->Zones() ) + view()->Hide( zone, false ); + view()->ClearPreview(); view()->ShowPreview( false ); }