diff --git a/ScreenPlay/inc/public/ScreenPlay/screenplaytimelinemanager.h b/ScreenPlay/inc/public/ScreenPlay/screenplaytimelinemanager.h index 5b05db18..5e319c05 100644 --- a/ScreenPlay/inc/public/ScreenPlay/screenplaytimelinemanager.h +++ b/ScreenPlay/inc/public/ScreenPlay/screenplaytimelinemanager.h @@ -24,7 +24,7 @@ public: void startup(); bool addTimelineFromSettings(const QJsonObject& timelineObj); bool deactivateCurrentTimeline(); - bool moveTimelineAt(const int index, const QString identifier, const float relativePosition, QString positionTimeString); + bool moveTimelineAt(const int index, const QString identifier, const float relativeLinePosition, QString positionTimeString); bool startTimeline(); bool addTimelineAt(const int index, const float reltiaveLinePosition, QString identifier); bool removeTimelineAt(const int index); diff --git a/ScreenPlay/src/screenplaytimelinemanager.cpp b/ScreenPlay/src/screenplaytimelinemanager.cpp index 37fde672..02fe0497 100644 --- a/ScreenPlay/src/screenplaytimelinemanager.cpp +++ b/ScreenPlay/src/screenplaytimelinemanager.cpp @@ -296,10 +296,10 @@ void ScreenPlayTimelineManager::updateIndices() timeline section. */ -bool ScreenPlayTimelineManager::addTimelineAt(const int index, const float reltiaveLinePosition, QString identifier) +bool ScreenPlayTimelineManager::addTimelineAt(const int index, const float relativeLinePosition, QString identifier) { // We always get the new endTime - const QString newStopPosition = Util().getTimeString(reltiaveLinePosition); + const QString newStopPosition = Util().getTimeString(relativeLinePosition); QTime newStopPositionTime = QTime::fromString(newStopPosition, m_timelineTimeFormat); if (!newStopPositionTime.isValid()) { return false; @@ -326,6 +326,7 @@ bool ScreenPlayTimelineManager::addTimelineAt(const int index, const float relti newTimelineSection->settings = m_settings; newTimelineSection->globalVariables = m_globalVariables; newTimelineSection->index = index; + newTimelineSection->relativePosition = relativeLinePosition; newTimelineSection->identifier = identifier; newTimelineSection->endTime = newStopPositionTime; // In case we do a full reset, we must set the start time manually