From 77c1b1b4ea8bc6dfd8921c6d587af7f0a75fbbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Mon, 20 Mar 2017 12:06:48 +0100 Subject: [PATCH] Refresh vias geometry when switching via display mode Fixes: lp:1674096 * https://bugs.launchpad.net/kicad/+bug/1674096 --- pcbnew/tools/pcbnew_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index 5011789f21..c7cb553e67 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -308,7 +308,7 @@ int PCBNEW_CONTROL::ViaDisplayMode( const TOOL_EVENT& aEvent ) for( TRACK* track = getModel()->m_Track; track; track = track->Next() ) { - if( track->Type() == PCB_TRACE_T ) + if( track->Type() == PCB_TRACE_T || track->Type() == PCB_VIA_T ) getView()->Update( track, KIGFX::GEOMETRY ); }