X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01c226691aabe0eb4bfe86c04b4b9a59d7af367a..2ec335db7806c058a02d022d2f75b4144ce69d2a:/src/propgrid/property.cpp diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index e57a9406ce..1e9f6100bd 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -928,8 +928,10 @@ wxString wxPGProperty::GetValueAsString( int argFlags ) const } #endif + wxPropertyGrid* pg = GetGrid(); + if ( IsValueUnspecified() ) - return wxEmptyString; + return pg->GetUnspecifiedValueText(argFlags); if ( m_commonValue == -1 ) { @@ -939,7 +941,6 @@ wxString wxPGProperty::GetValueAsString( int argFlags ) const // // Return common value's string representation - wxPropertyGrid* pg = GetGrid(); const wxPGCommonValue* cv = pg->GetCommonValue(m_commonValue); if ( argFlags & wxPG_FULL_VALUE )