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
This commit is contained in:
Mariano Reingart 2015-01-19 02:29:38 +00:00
parent fe3998c3c9
commit aeb68ff500

View File

@ -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);
}
}