]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
add version to docs
[wxWidgets.git] / 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)