From 28d1ddec90832cf5914b0739252f8cb79b1329c9 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sat, 6 Feb 2021 12:31:14 -0800 Subject: [PATCH] Set layout direction for wxClientDC Should have been part of 62c119fa1e (Fix RTL mirroring for wxClientDC, etc with GTK3, 2021-02-06) --- src/gtk/dc.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtk/dc.cpp b/src/gtk/dc.cpp index 88b0e012e0..519c998b3c 100644 --- a/src/gtk/dc.cpp +++ b/src/gtk/dc.cpp @@ -452,6 +452,7 @@ wxClientDCImpl::wxClientDCImpl(wxClientDC* owner, wxWindow* window) if (gdkWindow) { cairo_t* cr = gdk_cairo_create(gdkWindow); + SetLayoutDirection(wxLayout_Default); AdjustForRTL(cr); wxGraphicsContext* gc = wxGraphicsContext::CreateFromNative(cr); cairo_destroy(cr);