postpone the call to CopyAttributes() until the DC is fully initialized (closes #10867)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -116,10 +116,6 @@ private:
|
||||
|
||||
m_dc = dc;
|
||||
m_style = style;
|
||||
|
||||
// inherit the same layout direction as the original DC
|
||||
if ( dc && dc->IsOk() )
|
||||
CopyAttributes(*dc);
|
||||
}
|
||||
|
||||
// check that the bitmap is valid and use it
|
||||
|
@@ -115,6 +115,11 @@ void wxBufferedDC::UseBuffer(wxCoord w, wxCoord h)
|
||||
}
|
||||
|
||||
SelectObject(*m_buffer);
|
||||
|
||||
// now that the DC is valid we can inherit the attributes (fonts, colours,
|
||||
// layout direction, ...) from the original DC
|
||||
if ( m_dc->IsOk() )
|
||||
CopyAttributes(*m_dc);
|
||||
}
|
||||
|
||||
void wxBufferedDC::UnMask()
|
||||
|
Reference in New Issue
Block a user