Return an empty string from wxDataFormat::GetId if there was an error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-01-21 06:58:05 +00:00
parent 68585e1770
commit 5712281c5d

View File

@@ -159,6 +159,7 @@ wxString wxDataFormat::GetId() const
if ( !len )
{
wxLogError(_("The clipboard format '%d' doesn't exist."), m_format);
return wxEmptyString;
}
return s;