]> git.saurik.com Git - wxWidgets.git/commitdiff
#if wxUSE_CARET guard.
authorRobert Roebling <robert@roebling.de>
Sun, 5 Nov 2006 21:07:18 +0000 (21:07 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 5 Nov 2006 21:07:18 +0000 (21:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index c631f3b014e8dc5e0626a60e35d26254424d79bb..6ed4187ebaa2f1259e0aa806c4b3f876b820bdb4 100644 (file)
@@ -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)