summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6d1f75a)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52179
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( CopySelection() )
{
wxTextDataObject data;
if ( CopySelection() )
{
wxTextDataObject data;
- if ( wxTheClipboard && wxTheClipboard->GetData(data) )
+ if ( wxTheClipboard && wxTheClipboard->Open() && wxTheClipboard->GetData(data) )
{
const wxString text = data.GetText();
const size_t maxTextLength = 100;
{
const wxString text = data.GetText();
const size_t maxTextLength = 100;
wxString(text, maxTextLength).c_str(),
(text.length() > maxTextLength) ? _T("...")
: _T("")));
wxString(text, maxTextLength).c_str(),
(text.length() > maxTextLength) ? _T("...")
: _T("")));
+ wxTheClipboard->Close();
+