Skip to content

Commit

Permalink
Workaround is no longer needed (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo authored Oct 13, 2023
1 parent dea9fee commit 92ad1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,7 @@ struct Document {
auto CopyEntireCells(wxString &s, int k) {
sys->clipboardcopy = s;
wxString html = selected.g->ConvertToText(selected, 0, k == A_COPYWI ? A_EXPHTMLTI : A_EXPHTMLT, this, false);
auto htmlobj =
#if defined(__WXGTK__) && !wxCHECK_VERSION(3, 3, 0)
new wxCustomDataObject(wxDF_HTML);
htmlobj->SetData(html.Len(), html);
#else
new wxHTMLDataObject(html);
#endif
auto htmlobj = new wxHTMLDataObject(html);
return htmlobj;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

#include "stdafx.h"

static_assert(wxCHECK_VERSION(3, 2, 2), "wxWidgets < 3.2.2 is not supported.");
static_assert(wxCHECK_VERSION(3, 2, 3), "wxWidgets < 3.2.3 is not supported.");

#ifndef __WXMSW__
#define SIMPLERENDER
Expand Down

0 comments on commit 92ad1ff

Please sign in to comment.