From 5483ef7f0a4d341715fea3e740c2a2c2bc2d6a5d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Tue, 27 Dec 2011 11:44:52 +0100 Subject: [PATCH] Fix slideshow clips created with invalid frame duration --- src/slideshowclip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slideshowclip.cpp b/src/slideshowclip.cpp index dbe15e2d..9bbd8542 100644 --- a/src/slideshowclip.cpp +++ b/src/slideshowclip.cpp @@ -438,14 +438,14 @@ void SlideshowClip::slotMethodChanged(bool active) { if (active) { // User wants mimetype image sequence - if (m_view.clip_duration->text().isEmpty()) { + if (m_view.clip_duration->text().isEmpty() || m_view.clip_duration->text().length() < 4) { m_view.clip_duration->setText(m_timecode.reformatSeparators(KdenliveSettings::image_duration())); } m_view.stackedWidget->setCurrentIndex(0); KdenliveSettings::setSlideshowbymime(true); } else { // User wants pattern image sequence - if (m_view.clip_duration->text().isEmpty()) { + if (m_view.clip_duration->text().isEmpty() || m_view.clip_duration->text().length() < 4) { m_view.clip_duration->setText(m_timecode.reformatSeparators(KdenliveSettings::sequence_duration())); } m_view.stackedWidget->setCurrentIndex(1); -- 2.39.2