pcbnew: minor bug cursor move/drag module

This commit is contained in:
faa 2009-08-05 15:00:42 +00:00
parent 54a541f22c
commit d9ea63a857
1 changed files with 1 additions and 5 deletions

View File

@ -99,8 +99,6 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
/**********************************************************************/
{
wxPoint Mouse;
if( module == NULL )
return;
@ -111,9 +109,7 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
ModuleInitLayer = module->GetLayer();
GetScreen()->m_Curseur = module->m_Pos;
Mouse.x = wxRound( module->m_Pos.x );
Mouse.y = wxRound( module->m_Pos.y );
DrawPanel->MouseTo( Mouse );
DrawPanel->MouseToCursorSchema();
/* Effacement chevelu general si necessaire */
if( g_Show_Ratsnest )