diff --git a/src/qt/dcclient.cpp b/src/qt/dcclient.cpp index 13310331b567..46247c09a174 100644 --- a/src/qt/dcclient.cpp +++ b/src/qt/dcclient.cpp @@ -115,6 +115,8 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *win ) { if ( m_ok ) { + m_qtPainter->translate( wxQtConvertPoint(win->GetClientAreaOrigin()) ); + m_qtPainter->setClipRect( wxQtConvertRect(win->GetClientRect()), m_clipping ? Qt::IntersectClip : Qt::ReplaceClip ); }