From 3d98c82217f378f87e3d4dc95feefc475e1ae402 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 5 Dec 2018 19:58:07 -0800 Subject: [PATCH] pcbnew: Disable capture cursor in measure tool When starting the measure tool, the cursor should not be captured until we begin the measurement. Fixes: lp:1806486 * https://bugs.launchpad.net/kicad/+bug/1806486 --- pcbnew/tools/edit_tool.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 31a7e0a96c..23d9c8ff98 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -1225,6 +1225,7 @@ int EDIT_TOOL::MeasureTool( const TOOL_EVENT& aEvent ) controls.ShowCursor( true ); controls.SetAutoPan( false ); + controls.CaptureCursor( false ); while( auto evt = Wait() ) {