From 9b0cdc8d7d238d39959c3dfba14c90124f6b661d Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 31 May 2020 23:17:03 +0200 Subject: [PATCH] Only create the wxSTC cursor when it is needed --- src/stc/PlatWX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 359b5c4383..5b4ed4af35 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -1975,9 +1975,9 @@ void Window::SetCursor(Cursor curs) { break; } - wxCursor wc = wxCursor(cursorId); if(curs != cursorLast) { + wxCursor wc = wxCursor(cursorId); GETWIN(wid)->SetCursor(wc); cursorLast = curs; }