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:
@@ -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(); }
|
||||
};
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
|
Reference in New Issue
Block a user