Fix magnetic off-grid snapping in pcbnew.
This commit is contained in:
parent
1b7670ad24
commit
201408a185
|
@ -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 ) )
|
if( Magnetize( m_Pcb, this, GetToolId(), grid, on_grid, &pos ) )
|
||||||
{
|
{
|
||||||
GetScreen()->SetCrossHairPosition( pos );
|
GetScreen()->SetCrossHairPosition( pos, false );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -342,9 +342,9 @@ void WinEDA_PcbFrame::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int a
|
||||||
if( oldpos != GetScreen()->GetCrossHairPosition() )
|
if( oldpos != GetScreen()->GetCrossHairPosition() )
|
||||||
{
|
{
|
||||||
pos = GetScreen()->GetCrossHairPosition();
|
pos = GetScreen()->GetCrossHairPosition();
|
||||||
GetScreen()->SetCrossHairPosition( oldpos );
|
GetScreen()->SetCrossHairPosition( oldpos, false );
|
||||||
DrawPanel->CrossHairOff( aDC );
|
DrawPanel->CrossHairOff( aDC );
|
||||||
GetScreen()->SetCrossHairPosition( pos );
|
GetScreen()->SetCrossHairPosition( pos, false );
|
||||||
DrawPanel->CrossHairOn( aDC );
|
DrawPanel->CrossHairOn( aDC );
|
||||||
|
|
||||||
if( DrawPanel->IsMouseCaptured() )
|
if( DrawPanel->IsMouseCaptured() )
|
||||||
|
|
Loading…
Reference in New Issue