From 24d63fb5d9c1ce7d0ae2d15449289f04d8f56479 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 27 Jan 2017 12:10:21 +0100 Subject: [PATCH] Removed redundant calls to wxUpdateUIEvent handlers This is done automatically by wxWidgets and does not need to be called explicitly. --- pcbnew/tools/pcb_editor_control.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 120d1e7442..5fc9779e4f 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -213,8 +213,6 @@ int PCB_EDITOR_CONTROL::TrackWidthInc( const TOOL_EVENT& aEvent ) board->GetDesignSettings().SetTrackWidthIndex( widthIndex ); board->GetDesignSettings().UseCustomTrackViaSize( false ); - wxUpdateUIEvent dummy; - m_frame->OnUpdateSelectTrackWidth( dummy ); m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged ); return 0; @@ -232,8 +230,6 @@ int PCB_EDITOR_CONTROL::TrackWidthDec( const TOOL_EVENT& aEvent ) board->GetDesignSettings().SetTrackWidthIndex( widthIndex ); board->GetDesignSettings().UseCustomTrackViaSize( false ); - wxUpdateUIEvent dummy; - m_frame->OnUpdateSelectTrackWidth( dummy ); m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged ); return 0; @@ -251,8 +247,6 @@ int PCB_EDITOR_CONTROL::ViaSizeInc( const TOOL_EVENT& aEvent ) board->GetDesignSettings().SetViaSizeIndex( sizeIndex ); board->GetDesignSettings().UseCustomTrackViaSize( false ); - wxUpdateUIEvent dummy; - m_frame->OnUpdateSelectViaSize( dummy ); m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged ); return 0; @@ -270,8 +264,6 @@ int PCB_EDITOR_CONTROL::ViaSizeDec( const TOOL_EVENT& aEvent ) board->GetDesignSettings().SetViaSizeIndex( sizeIndex ); board->GetDesignSettings().UseCustomTrackViaSize( false ); - wxUpdateUIEvent dummy; - m_frame->OnUpdateSelectViaSize( dummy ); m_toolMgr->RunAction( COMMON_ACTIONS::trackViaSizeChanged ); return 0;