| 222 | } |
| 223 | |
| 224 | void TimeEdit::PasteTime() { |
| 225 | if (byFrame) { |
| 226 | Paste(); |
| 227 | return; |
| 228 | } |
| 229 | |
| 230 | std::string text(GetClipboard()); |
| 231 | if (text.empty()) return; |
| 232 | |
| 233 | agi::Time tempTime(text); |
| 234 | if (tempTime.GetAssFormatted() == text) { |
| 235 | SetTime(tempTime); |
| 236 | SetSelection(0, GetValue().size()); |
| 237 | |
| 238 | wxCommandEvent evt(wxEVT_TEXT, GetId()); |
| 239 | evt.SetEventObject(this); |
| 240 | HandleWindowEvent(evt); |
| 241 | } |
| 242 | } |
nothing calls this directly
no test coverage detected