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:
Václav Slavík 2001-11-24 23:59:22 +00:00
parent a6b27b78d3
commit ac4de06921

View File

@ -1097,6 +1097,7 @@ void wxDC::SetPalette(const wxPalette& palette)
if ( palette == wxNullPalette )
{
if ( m_oldPalette.Ok() )
SetPalette(m_oldPalette);
return;
}