diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index d159170cfb..d862664ba0 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -2989,7 +2989,7 @@ void FormMain::OnMisc ( wxCommandEvent& event ) } else if ( id == ID_SETVALUES ) { - if ( m_storedValues.GetType() == wxT("list") ) + if ( m_storedValues.IsType(wxT("list")) ) { m_pPropGridManager->GetGrid()->SetPropertyValues(m_storedValues); } diff --git a/samples/propgrid/sampleprops.cpp b/samples/propgrid/sampleprops.cpp index bfeb9f8002..56231ed112 100644 --- a/samples/propgrid/sampleprops.cpp +++ b/samples/propgrid/sampleprops.cpp @@ -77,9 +77,9 @@ wxFontDataProperty::~wxFontDataProperty () { } void wxFontDataProperty::OnSetValue() { - if ( m_value.GetType() != wxT("wxFontData") ) + if ( !m_value.IsType(wxT("wxFontData")) ) { - if ( m_value.GetType() == wxT("wxFont") ) + if ( m_value.IsType(wxT("wxFont")) ) { wxFont font; font << m_value;