diff --git a/src/gtk/renderer.cpp b/src/gtk/renderer.cpp index 77ce8a0a4f..e968ace5e1 100644 --- a/src/gtk/renderer.cpp +++ b/src/gtk/renderer.cpp @@ -510,6 +510,10 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win, 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) { @@ -524,7 +528,7 @@ wxRendererGTK::DrawItemSelectionRect(wxWindow *win, NULL, win->m_wxwindow, "cell_even", - dc.LogicalToDeviceX(rect.x), + dc.LogicalToDeviceX(rect.x) - x_diff, dc.LogicalToDeviceY(rect.y), rect.width, rect.height );