fixes for file drops in unicode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -206,7 +206,10 @@ bool wxFileDataObject::SetData(
|
||||
{
|
||||
m_filenames.Empty();
|
||||
|
||||
AddFile(wxString::FromAscii((char*)pBuf));
|
||||
// only add if this is not an empty string
|
||||
// we can therefore clear the list by just setting an empty string
|
||||
if ( (*(char*)pBuf) != 0 )
|
||||
AddFile(wxString::FromAscii((char*)pBuf));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user