]> git.saurik.com Git - wxWidgets.git/commitdiff
Return an empty string from wxDataFormat::GetId if there was an error
authorRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 06:58:05 +0000 (06:58 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 06:58:05 +0000 (06:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/dataobj.cpp

index d4ec164a93c4a56b025534c9fb5feb0edf710b6b..4cfcee5e9ebf813d1f8fca73f3df6d1d54cbc4c1 100644 (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;