From: Robert Roebling Date: Sun, 5 Nov 2006 21:07:18 +0000 (+0000) Subject: #if wxUSE_CARET guard. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/231018bdb6db9b48d397529b0509d0ccdb6bcd9c?ds=sidebyside #if wxUSE_CARET guard. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)