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:
Vadim Zeitlin
2009-06-04 08:55:44 +00:00
parent 817b3d0e78
commit a96827606e
2 changed files with 5 additions and 4 deletions

View File

@@ -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