Commit d9ea63a8 authored by faa's avatar faa

pcbnew: minor bug cursor move/drag module

parent 54a541f2
...@@ -99,8 +99,6 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC ) ...@@ -99,8 +99,6 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
/**********************************************************************/ /**********************************************************************/
{ {
wxPoint Mouse;
if( module == NULL ) if( module == NULL )
return; return;
...@@ -111,9 +109,7 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC ) ...@@ -111,9 +109,7 @@ void WinEDA_PcbFrame::StartMove_Module( MODULE* module, wxDC* DC )
ModuleInitLayer = module->GetLayer(); ModuleInitLayer = module->GetLayer();
GetScreen()->m_Curseur = module->m_Pos; GetScreen()->m_Curseur = module->m_Pos;
Mouse.x = wxRound( module->m_Pos.x ); DrawPanel->MouseToCursorSchema();
Mouse.y = wxRound( module->m_Pos.y );
DrawPanel->MouseTo( Mouse );
/* Effacement chevelu general si necessaire */ /* Effacement chevelu general si necessaire */
if( g_Show_Ratsnest ) if( g_Show_Ratsnest )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment