added wxDC::CopyAttributes() and use it in wxBufferedDC to ensure that wxAutoBufferedPaintDC font is correctly initialized from the window font, as it already happens with wxPaintDC that it mimics

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-05-31 19:40:04 +00:00
parent 6de9def05d
commit 4feecbb929
5 changed files with 30 additions and 3 deletions

View File

@@ -118,8 +118,8 @@ private:
m_style = style;
// inherit the same layout direction as the original DC
if (dc && dc->IsOk())
SetLayoutDirection(dc->GetLayoutDirection());
if ( dc && dc->IsOk() )
CopyAttributes(*dc);
}
// check that the bitmap is valid and use it