Only create the wxSTC cursor when it is needed
This commit is contained in:
parent
5166ddea2b
commit
9b0cdc8d7d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user