Build wxMetafileDataObject when wxUSE_DATAOBJ==1
wxMetafileDataObject is a specialization of wxDataObject and its compilation should be controlled directly by wxUSE_DATAOBJ (like it's done under wxOSX, see e.g. include/wx/osx/metafile.h), not by wxUSE_DRAG_AND_DROP.
This commit is contained in:
@@ -456,7 +456,7 @@ bool wxMakeMetafilePlaceable(const wxString& filename, int x1, int y1, int x2, i
|
||||
}
|
||||
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#if wxUSE_DATAOBJ
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMetafileDataObject
|
||||
@@ -515,6 +515,6 @@ bool wxMetafileDataObject::SetData(size_t WXUNUSED(len), const void *buf)
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
#endif // wxUSE_DATAOBJ
|
||||
|
||||
#endif // wxUSE_METAFILE
|
||||
|
Reference in New Issue
Block a user