X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/307f16e829979a22bf00b699b5b2e852cd4eb59e..e7494fa9961c39cd14069ef8b12f5c059c7d3b35:/src/gtk1/textctrl.cpp diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 66fbb33bd5..8a2fcc6491 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -946,7 +946,7 @@ void wxTextCtrl::OnInternalIdle() cursor = *wxSTANDARD_CURSOR; window = m_widget->window; - if (window) + if ((window) && !(GTK_WIDGET_NO_WINDOW(m_widget))) gdk_window_set_cursor( window, cursor.GetCursor() ); } }