From 231018bdb6db9b48d397529b0509d0ccdb6bcd9c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 5 Nov 2006 21:07:18 +0000 Subject: [PATCH] #if wxUSE_CARET guard. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.50.0