diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index 7c647971b0..a7c10579f3 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1070,9 +1070,6 @@ void wxWindowDCImpl::DoDrawBitmap( const wxBitmap &bitmap, int w = bitmap.GetWidth(); int h = bitmap.GetHeight(); - if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft) - xx -= w; - CalcBoundingBox( x, y ); CalcBoundingBox( x + w, y + h ); @@ -1081,6 +1078,9 @@ void wxWindowDCImpl::DoDrawBitmap( const wxBitmap &bitmap, int ww = XLOG2DEVREL(w); int hh = YLOG2DEVREL(h); + if (m_window && m_window->GetLayoutDirection() == wxLayout_RightToLeft) + xx -= ww; + if (IsOutsideOfClippingRegion( xx,yy,ww,hh )) return;