Fix incorrect name (typo) of a method.

This commit is contained in:
jean-pierre charras 2018-01-18 10:09:43 +01:00
parent ef13b97ff7
commit 47d392d83e
5 changed files with 8 additions and 8 deletions

View File

@ -449,7 +449,7 @@ void WX_VIEW_CONTROLS::SetCursorPosition( const VECTOR2D& aPosition, bool aWarpV
} }
void WX_VIEW_CONTROLS::SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) void WX_VIEW_CONTROLS::SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true )
{ {
m_updateCursor = false; m_updateCursor = false;

View File

@ -237,11 +237,11 @@ public:
/** /**
* Moves the graphic crossair cursor to the requested position expressed in world coordinates. * Moves the graphic crosshair cursor to the requested position expressed in world coordinates.
* @param aPosition is the requested cursor position in the world coordinates. * @param aPosition is the requested cursor position in the world coordinates.
* @param aWarpView enables/disables view warp if the cursor is outside the current viewport. * @param aWarpView enables/disables view warp if the cursor is outside the current viewport.
*/ */
virtual void SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) = 0; virtual void SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView = true ) = 0;
/** /**

View File

@ -83,8 +83,8 @@ public:
void SetCursorPosition( const VECTOR2D& aPosition, bool warpView ) override; void SetCursorPosition( const VECTOR2D& aPosition, bool warpView ) override;
/// @copydoc VIEW_CONTROLS::SetCrossAirCursorPosition() /// @copydoc VIEW_CONTROLS::SetCrossHairCursorPosition()
void SetCrossAirCursorPosition( const VECTOR2D& aPosition, bool aWarpView ) override; void SetCrossHairCursorPosition( const VECTOR2D& aPosition, bool aWarpView ) override;
/// @copydoc VIEW_CONTROLS::CursorWarp() /// @copydoc VIEW_CONTROLS::CursorWarp()
void WarpCursor( const VECTOR2D& aPosition, bool aWorldCoordinates = false, void WarpCursor( const VECTOR2D& aPosition, bool aWorldCoordinates = false,

View File

@ -272,8 +272,8 @@ public:
/** /**
* Useful to focus on a particular location, in find functions * Useful to focus on a particular location, in find functions
* Move the graphic cursor at a given coordinate and reframes the drawing if the * Move the graphic cursor (crosshair cursor) at a given coordinate and reframes
* requested point is out of view or if center on location is requested. * the drawing if the requested point is out of view or if center on location is requested.
* @param aPos is the point to go to. * @param aPos is the point to go to.
* @param aWarpMouseCursor is true if the pointer should be warped to the new position. * @param aWarpMouseCursor is true if the pointer should be warped to the new position.
* @param aCenterView is true if the new cursor position should be centered on canvas. * @param aCenterView is true if the new cursor position should be centered on canvas.

View File

@ -351,7 +351,7 @@ void PCB_BASE_FRAME::FocusOnLocation( const wxPoint& aPos,
if( aWarpMouseCursor ) if( aWarpMouseCursor )
GetGalCanvas()->GetViewControls()->SetCursorPosition( aPos ); GetGalCanvas()->GetViewControls()->SetCursorPosition( aPos );
else else
GetGalCanvas()->GetViewControls()->SetCrossAirCursorPosition( aPos ); GetGalCanvas()->GetViewControls()->SetCrossHairCursorPosition( aPos );
} }
else else
{ {