DnD fixes
Image fixes Clipboard API git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "wx/debug.h"
|
||||
#include "wx/log.h"
|
||||
#include "../png/png.h"
|
||||
#include "wx/filefn.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxImage
|
||||
@@ -191,6 +192,13 @@ int wxImage::GetHeight() const
|
||||
bool wxImage::LoadFile( const wxString& filename, long type )
|
||||
{
|
||||
UnRef();
|
||||
|
||||
if (!wxFileExists(filename))
|
||||
{
|
||||
wxLogWarning( "Image file does not exist." );
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
m_refData = new wxImageRefData;
|
||||
|
||||
|
Reference in New Issue
Block a user