From aeb68ff50038dde3e4b0b95e8bbcd0b9989297ef Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 19 Jan 2015 02:29:38 +0000 Subject: [PATCH] Fix Select on wxQT DC implementation Need to set the underlying qt painter up with the current pen, brush and font when a new object is selected Thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/dcmemory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/dcmemory.cpp b/src/qt/dcmemory.cpp index d5dfc1da23..dc1aeae978 100644 --- a/src/qt/dcmemory.cpp +++ b/src/qt/dcmemory.cpp @@ -71,6 +71,10 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap ) m_qtImage = new QImage( bitmap.GetHandle()->toImage() ); // start drawing on the intermediary device: m_ok = m_qtPainter->begin( m_qtImage ); + + SetPen(m_pen); + SetBrush(m_brush); + SetFont(m_font); } }