summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-17 20:56:49 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-17 20:56:49 +0100
commit5b67058dd799c6712be8f4d91c55993812a4f3c4 (patch)
treed06e2d371698c626bc3eaeb7f4640f77ff4ff958
parent11343af8c785df572a092765a1d7e7ac40364295 (diff)
Allow pasting of another timecode format.
-rw-r--r--src/wx/timecode.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/timecode.cc b/src/wx/timecode.cc
index 6538bf986..e81b10db1 100644
--- a/src/wx/timecode.cc
+++ b/src/wx/timecode.cc
@@ -152,6 +152,12 @@ TimecodeBase::paste(wxClipboardTextEvent& ev)
_seconds->SetValue(contents.Mid(4, 2));
_frames->SetValue(contents.Mid(6, 2));
return;
+ } else if (contents.Length() == 11 && contents[2] == ':' && contents[5] == ':' && contents[8] == ':') {
+ _hours->SetValue(contents.Mid(0, 2));
+ _minutes->SetValue(contents.Mid(3, 2));
+ _seconds->SetValue(contents.Mid(6, 2));
+ _frames->SetValue(contents.Mid(9, 2));
+ return;
}
}