diff --git a/common/drawpanel.cpp b/common/drawpanel.cpp index 102afc78eb..1072f31b34 100644 --- a/common/drawpanel.cpp +++ b/common/drawpanel.cpp @@ -361,7 +361,7 @@ void WinEDA_DrawPanel::MouseTo( const wxPoint& Mouse ) /****************************************************/ /** Move the mouse cursor to the position "Mouse" - * @param Mouse = new mouse cursor position + * @param Mouse = mouse cursor position, in pixels units */ { int x, y, xPpu, yPpu; @@ -700,7 +700,7 @@ void WinEDA_DrawPanel::DrawBackGround( wxDC* DC ) drawgrid = m_Parent->m_Draw_Grid; screen_grid_size = screen->GetGrid(); - + wxRealPoint dgrid = screen_grid_size; screen->Scale( dgrid ); // dgrid = grid size in pixels // if the grid size is sall ( < 5 pixels) do not display all points diff --git a/pcbnew/basepcbframe.cpp b/pcbnew/basepcbframe.cpp index f20f6d0798..3f4fbbf023 100644 --- a/pcbnew/basepcbframe.cpp +++ b/pcbnew/basepcbframe.cpp @@ -129,7 +129,6 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos ) // Put cursor on item position DrawPanel->CursorOff( &dc ); screen->m_Curseur = aPos; - DrawPanel->MouseTo( screen->m_Curseur ); DrawPanel->MouseToCursorSchema(); DrawPanel->CursorOn( &dc ); }