Nix another easily triggered infinite event loop on Windows

This infinite loop was triggered on any dynamic scaling change with KiCad open.
Either local display scale change OR Remote Desktop.
This commit is contained in:
Marek Roszko 2020-11-10 19:59:13 -05:00
parent beab46e965
commit 2a3e6ee1b5
1 changed files with 1 additions and 1 deletions

View File

@ -760,7 +760,7 @@ void WX_VIEW_CONTROLS::UpdateScrollbars()
m_parentPanel->SetScrollbars( 1, 1, newRange.x, newRange.y, newScroll.x, newScroll.y, true );
m_scrollPos = newScroll;
#ifndef __APPLE__
#if !defined( __APPLE__ ) && !defined( WIN32 )
// Trigger a mouse refresh to get the canvas update in GTK (re-draws the scrollbars).
// Note that this causes an infinite loop on OSX as it generates a paint event.
refreshMouse();