From c04f72d961075bd57757596dc193472adc2840c6 Mon Sep 17 00:00:00 2001 From: Mark Boas Date: Wed, 13 Jan 2021 17:21:43 +0100 Subject: [PATCH] 58 bug fix for captions --- wp-hyperaudio/js/caption.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-hyperaudio/js/caption.js b/wp-hyperaudio/js/caption.js index dd69767..e147af7 100644 --- a/wp-hyperaudio/js/caption.js +++ b/wp-hyperaudio/js/caption.js @@ -168,6 +168,10 @@ var caption = (function () { if (firstLine === true) { + if (lastOutTime === undefined) { + lastOutTime = wordMeta.start + wordMeta.duration; + } + thisCaption = new captionMeta(formatSeconds(lastInTime), formatSeconds(lastOutTime), ""); thisCaption.text += lineText + "\n";