← Back to team overview

kicad-developers team mailing list archive

[PATCH] Gerbview: Zoom to selection tool duplication

 

Gerbview has "Zoom to selection" tool present on both toolbars (left and
top).
Attached patch removes it from left toolbar, so "Zoom to selection" stay
present beside other zooming tools.
From e17fba20eda55fabeca98f36258b22b45c02c636 Mon Sep 17 00:00:00 2001
From: Baranovskiy Konstantin <baranovskiykonstantin@xxxxxxxxx>
Date: Sat, 30 Sep 2017 22:07:55 +0300
Subject: [PATCH] Gerbview: fix zoom to selection tool duplication.

---
 gerbview/toolbars_gerber.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gerbview/toolbars_gerber.cpp b/gerbview/toolbars_gerber.cpp
index 40b5ed094..59e932c34 100644
--- a/gerbview/toolbars_gerber.cpp
+++ b/gerbview/toolbars_gerber.cpp
@@ -217,9 +217,6 @@ void GERBVIEW_FRAME::ReCreateOptToolbar( void )
     m_optionsToolBar->AddTool( ID_NO_TOOL_SELECTED, wxEmptyString, KiBitmap( cursor_xpm ),
                                wxEmptyString, wxITEM_CHECK );
 
-    m_optionsToolBar->AddTool( ID_ZOOM_SELECTION, wxEmptyString, KiBitmap( zoom_area_xpm ),
-                               _( "Zoom to selection" ), wxITEM_CHECK );
-
     if( IsGalCanvasActive() )
     {
         m_optionsToolBar->AddTool( ID_TB_MEASUREMENT_TOOL, wxEmptyString,
-- 
2.14.1


Follow ups