Only create the wxSTC cursor when it is needed

This commit is contained in:
Maarten Bent 2020-05-31 23:17:03 +02:00
parent 5166ddea2b
commit 9b0cdc8d7d

View File

@ -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;
}