diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2019-01-16 09:38:08 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-16 09:38:08 -0200 |
commit | 9c7c255d7dc957241364aca0e5322da926e33fc7 (patch) | |
tree | 16dda6fad8398941c3c8e4db6d48ef98602ec06f /Project/DataReport.cpp | |
parent | af070d92462ac5586aa6a0a80c51a8fa72710600 (diff) | |
parent | db3fadbcc9f396ca22c4578101bbcd0a7e81609e (diff) | |
download | PSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.tar.gz PSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.tar.xz PSP.git-9c7c255d7dc957241364aca0e5322da926e33fc7.zip |
Merge pull request #46 from Thales1330/wip/induction-motor
Wip/induction motor
Diffstat (limited to 'Project/DataReport.cpp')
-rw-r--r-- | Project/DataReport.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Project/DataReport.cpp b/Project/DataReport.cpp index 2742471..1511079 100644 --- a/Project/DataReport.cpp +++ b/Project/DataReport.cpp @@ -1030,11 +1030,12 @@ void DataReport::GridKeyHandler(wxGrid* grid, wxKeyEvent& event) } } } - - wxOpenClipboard(); - wxEmptyClipboard(); - wxSetClipboardData(wxDF_TEXT, copyData.mb_str(), 0, 0); // In Windows need this for UNICODE - wxCloseClipboard(); + + if (wxTheClipboard->Open()) + { + wxTheClipboard->SetData(new wxTextDataObject(copyData)); + wxTheClipboard->Close(); + } } else if(event.GetKeyCode() == 'A' && event.GetModifiers() == wxMOD_CONTROL) { // Select all grid->SelectAll(); } |