diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index c631f3b014..6ed4187eba 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -4236,6 +4236,7 @@ void wxWindowGTK::ScrollWindow( int dx, int dy, const wxRect* WXUNUSED(rect) ) m_clipPaintRegion = false; +#if wxUSE_CARET bool restoreCaret = (GetCaret() != NULL && GetCaret()->IsVisible()); if (restoreCaret) { @@ -4255,6 +4256,7 @@ void wxWindowGTK::ScrollWindow( int dx, int dy, const wxRect* WXUNUSED(rect) ) RefreshRect(caretRect); } +#endif } void wxWindowGTK::GtkScrolledWindowSetBorder(GtkWidget* w, int wxstyle)