git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43418
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxASSERT_MSG( gdk_window,
wxT("cannot use wxRendererNative on wxDC of this type") );
+ int x_diff = 0;
+ if (win->GetLayoutDirection() == wxLayout_RightToLeft)
+ x_diff = rect.width;
+
GtkStateType state;
if (flags & wxCONTROL_SELECTED)
{
NULL,
win->m_wxwindow,
"cell_even",
- dc.LogicalToDeviceX(rect.x),
+ dc.LogicalToDeviceX(rect.x) - x_diff,
dc.LogicalToDeviceY(rect.y),
rect.width,
rect.height );