readded clipboard support to richedit sample and fixed a fatal bug in

wxCustomDataObject (uninitialized m_data) which this allowed to discover


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-11-03 01:13:04 +00:00
parent 51edda6af0
commit 4e16881a08
4 changed files with 24 additions and 24 deletions

View File

@@ -1218,13 +1218,15 @@ private:
class wxLayoutDataObject : public wxCustomDataObject
{
public:
wxLayoutDataObject(void)
wxLayoutDataObject()
{
#if 0 // TODO: No longer exists, what should we do instead?
SetId("application/wxlayoutlist");
#endif
//m_format.SetAtom((GdkAtom) 222222);
SetFormat("application/wxlayoutlist");
}
// type safe wrappers
void SetLayoutData(const wxString& text)
{ SetData(text.length() + 1, text.c_str()); }
const char *GetLayoutData() const { return (const char *)GetData(); }
};
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *