code cleaning

This commit is contained in:
charras
2009-12-20 19:48:58 +00:00
parent c2ea4a0aff
commit 0b41d484ff
22 changed files with 122 additions and 233 deletions
+3 -7
View File
@@ -10,6 +10,7 @@
#include "wxPcbStruct.h"
#include "pcbnew_id.h"
#include "kicad_device_context.h"
#include "protos.h"
@@ -20,7 +21,7 @@ void WinEDA_PcbFrame::ProcessMuWaveFunctions( wxCommandEvent& event )
{
int id = event.GetId();
wxPoint pos;
KicadGraphicContext dc( DrawPanel );
INSTALL_DC( dc, DrawPanel );
wxGetMousePosition( &pos.x, &pos.y );
@@ -32,12 +33,7 @@ void WinEDA_PcbFrame::ProcessMuWaveFunctions( wxCommandEvent& event )
break;
default: // End block command in progress.
if( DrawPanel->ManageCurseur
&& DrawPanel->ForceCloseManageCurseur )
{
DrawPanel->ForceCloseManageCurseur( DrawPanel, &dc );
}
SetToolID( 0, wxCURSOR_ARROW, wxEmptyString );
DrawPanel->UnManageCursor( );
break;
}