GetEditableState() with DescBoxState flag could assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2008-10-05 09:43:51 +00:00
parent 9f7aee0198
commit 72eb964f27

View File

@@ -1015,7 +1015,8 @@ wxString wxPropertyGridInterface::SaveEditableState( int includedStates ) const
if ( includedStates & DescBoxState ) if ( includedStates & DescBoxState )
{ {
wxVariant v = GetEditableStateItem(wxS("descboxheight")); wxVariant v = GetEditableStateItem(wxS("descboxheight"));
result += wxString::Format(wxS("descboxheight=%i;"), (int)v.GetLong()); if ( !v.IsNull() )
result += wxString::Format(wxS("descboxheight=%i;"), (int)v.GetLong());
} }
result.RemoveLast(); // Remove last semicolon result.RemoveLast(); // Remove last semicolon
result += wxS("|"); result += wxS("|");