Only create the wxSTC cursor when it is needed
This commit is contained in:
@@ -1975,9 +1975,9 @@ void Window::SetCursor(Cursor curs) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxCursor wc = wxCursor(cursorId);
|
|
||||||
if(curs != cursorLast)
|
if(curs != cursorLast)
|
||||||
{
|
{
|
||||||
|
wxCursor wc = wxCursor(cursorId);
|
||||||
GETWIN(wid)->SetCursor(wc);
|
GETWIN(wid)->SetCursor(wc);
|
||||||
cursorLast = curs;
|
cursorLast = curs;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user