git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60891
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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
}
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()