From e05cd0e9146f4be16d0a7e86259cb11e1e3c4b1e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 12 Aug 2020 22:27:20 +0100 Subject: [PATCH] Raise limit to prevent zooming on cross-probing. Fixes https://gitlab.com/kicad/code/kicad/issues/5149 --- eeschema/cross-probing.cpp | 2 +- pcbnew/cross-probing.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/cross-probing.cpp b/eeschema/cross-probing.cpp index 48b2ce1d42..6f8c454d8a 100644 --- a/eeschema/cross-probing.cpp +++ b/eeschema/cross-probing.cpp @@ -137,7 +137,7 @@ SCH_ITEM* SCH_EDITOR_CONTROL::FindComponentAndItem( const wxString& aReference, fabs( bbSize.y / screenSize.y ) ); // Try not to zoom on every cross-probe; it gets very noisy - if( ratio < 0.1 || ratio > 1.0 ) + if( ratio < 0.5 || ratio > 1.0 ) getView()->SetScale( getView()->GetScale() / ratio ); } } diff --git a/pcbnew/cross-probing.cpp b/pcbnew/cross-probing.cpp index 0faaa7247b..2dbf7b4481 100644 --- a/pcbnew/cross-probing.cpp +++ b/pcbnew/cross-probing.cpp @@ -275,7 +275,7 @@ void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline ) fabs( bbSize.y / screenSize.y ) ); // Try not to zoom on every cross-probe; it gets very noisy - if( crossProbingSettings.zoom_to_fit && ( ratio < 0.1 || ratio > 1.0 ) ) + if( crossProbingSettings.zoom_to_fit && ( ratio < 0.5 || ratio > 1.0 ) ) view->SetScale( view->GetScale() / ratio ); view->SetCenter( bbox.Centre() );