Let wxGCDC inherit wxWindow from wxGraphicsContext

This commit is contained in:
Maarten Bent
2022-04-20 21:58:20 +02:00
parent 59443803b4
commit 7cd4e343a2

View File

@@ -160,6 +160,11 @@ void wxGCDCImpl::SetGraphicsContext( wxGraphicsContext* ctx )
if ( DoInitContext(ctx) )
{
if (m_graphicContext->GetWindow())
{
m_window = m_graphicContext->GetWindow();
}
// Reapply our attributes to the context.
m_graphicContext->SetFont( m_font , m_textForegroundColour );
m_graphicContext->SetPen( m_pen );