Commit 201408a1 authored by Marco Mattila's avatar Marco Mattila

Fix magnetic off-grid snapping in pcbnew.

parent 1b7670ad
......@@ -323,7 +323,7 @@ void WinEDA_PcbFrame::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int a
if( Magnetize( m_Pcb, this, GetToolId(), grid, on_grid, &pos ) )
{
GetScreen()->SetCrossHairPosition( pos );
GetScreen()->SetCrossHairPosition( pos, false );
}
else
{
......@@ -342,9 +342,9 @@ void WinEDA_PcbFrame::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int a
if( oldpos != GetScreen()->GetCrossHairPosition() )
{
pos = GetScreen()->GetCrossHairPosition();
GetScreen()->SetCrossHairPosition( oldpos );
GetScreen()->SetCrossHairPosition( oldpos, false );
DrawPanel->CrossHairOff( aDC );
GetScreen()->SetCrossHairPosition( pos );
GetScreen()->SetCrossHairPosition( pos, false );
DrawPanel->CrossHairOn( aDC );
if( DrawPanel->IsMouseCaptured() )
......
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