Fix wxBufferedDC so that it adheres to its documented behavior (which is in use in wxPython at least) and make a note about the layout direction assignment.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,13 +122,13 @@ private:
|
||||
void InitCommon(wxDC *dc, int style)
|
||||
{
|
||||
wxASSERT_MSG( !m_dc, _T("wxBufferedDC already initialised") );
|
||||
wxCHECK_RET( dc, _T("can't associate NULL DC with wxBufferedDC") );
|
||||
|
||||
m_dc = dc;
|
||||
m_style = style;
|
||||
|
||||
// inherit the same layout direction as the original DC
|
||||
SetLayoutDirection(dc->GetLayoutDirection());
|
||||
if (dc && dc->IsOk())
|
||||
SetLayoutDirection(dc->GetLayoutDirection());
|
||||
}
|
||||
|
||||
// check that the bitmap is valid and use it
|
||||
|
Reference in New Issue
Block a user