]> git.saurik.com Git - wxWidgets.git/commitdiff
IsExposed() needs to reverse the direction in RTL.
authorRobert Roebling <robert@roebling.de>
Mon, 9 Oct 2006 20:32:12 +0000 (20:32 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 9 Oct 2006 20:32:12 +0000 (20:32 +0000)
    I actually wonder if not the calling code is wrong,
    but this fixes wxListCtrl and wxTreeCtrl for the
    time being.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 3862a4826e3524b133b84312a4236e1beac1768a..11567f27fbebb9b3ebd4a49585892d4802e672d9 100644 (file)
@@ -3822,11 +3822,9 @@ bool wxWindowGTK::DoIsExposed( int x, int y ) const
 
 bool wxWindowGTK::DoIsExposed( int x, int y, int w, int h ) const
 {
-#if 0
     if (GetLayoutDirection() == wxLayout_RightToLeft)
         return m_updateRegion.Contains(x-w, y, w, h) != wxOutRegion;
     else
-#endif
         return m_updateRegion.Contains(x, y, w, h) != wxOutRegion;
 }