Let wxGCDC inherit wxWindow from wxGraphicsContext
This commit is contained in:
parent
59443803b4
commit
7cd4e343a2
1 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue