fool-proof wxDC::SetPalette(wxNullPalette)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a6b27b78d3
commit
ac4de06921
@ -1097,7 +1097,8 @@ void wxDC::SetPalette(const wxPalette& palette)
|
||||
|
||||
if ( palette == wxNullPalette )
|
||||
{
|
||||
SetPalette(m_oldPalette);
|
||||
if ( m_oldPalette.Ok() )
|
||||
SetPalette(m_oldPalette);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user