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:
@@ -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("|");
|
||||||
|
Reference in New Issue
Block a user