From 6871f5fe9004c4ca79223b2470cb433df1296719 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 8 Aug 2014 07:13:03 +0000 Subject: [PATCH] Remove temporary fix for drawing check box in the wxPG edit mode with RTL layout Since the issue is fixed (r77020) this hack is no longer necessary (see #16254). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/editors.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index fe91c88fe5..93e863d212 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -1552,20 +1552,7 @@ wxBitmap* wxSimpleCheckBox::ms_doubleBuffer = NULL; void wxSimpleCheckBox::OnPaint( wxPaintEvent& WXUNUSED(event) ) { wxRect rect(GetClientSize()); -#ifdef __WXMSW__ - wxPaintDC dc(this); - // Under MSW, wxAutoBufferedPaintDC, wxPaintDC don't work fine with RTL, - // so we need to bypass this problem by setting LTR direction for this DC. - // Fortunately, we have only check box image to draw, no texts. - if ( dc.GetLayoutDirection() == wxLayout_RightToLeft ) - { - dc.SetLayoutDirection(wxLayout_LeftToRight); - // Some hack to prevent shifting the ouput image. - rect.x -= 2; - } -#else wxAutoBufferedPaintDC dc(this); -#endif dc.Clear(); rect.y += 1;