From 563bff9d700ab8cb388ebe3f504516263a865ef1 Mon Sep 17 00:00:00 2001 From: Marco Mattila Date: Wed, 9 Feb 2011 20:41:46 +0200 Subject: [PATCH] Keep current tool selection when saving in pcbnew. --- pcbnew/files.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index b16a2a6bc8..2bcdc41c2d 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -44,8 +44,12 @@ void WinEDA_PcbFrame::Files_io( wxCommandEvent& event ) int id = event.GetId(); wxString msg; - // If an edition is in progress, stop it - DrawPanel->UnManageCursor( 0, DrawPanel->GetDefaultCursor() ); + // If an edition is in progress, stop it. + // For something else than save, get rid of current tool. + if( id == ID_SAVE_BOARD ) + DrawPanel->UnManageCursor( -1, DrawPanel->GetDefaultCursor() ); + else + DrawPanel->UnManageCursor( 0, DrawPanel->GetDefaultCursor() ); switch( id ) {