From 7a67d056e6e657da27eb734147cfc34a90f31a5e Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 4 Aug 2019 03:02:15 +0200 Subject: [PATCH] Warp display when selecting schematic items When selecting items where the reference point is off-screen, GTK would default the cursor to jump to the bottom of the screen. Fixes: lp:1838843 * https://bugs.launchpad.net/kicad/+bug/1838843 --- eeschema/tools/sch_move_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index abe9bf530..4a8b73486 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -298,7 +298,7 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) else m_anchorPos = sch_item->GetPosition(); - getViewControls()->WarpCursor( *m_anchorPos ); + getViewControls()->WarpCursor( *m_anchorPos, true, true ); m_cursor = *m_anchorPos; } // ...otherwise modify items with regard to the grid-snapped cursor position -- 2.21.0