We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 959947a commit bc6174fCopy full SHA for bc6174f
src/Timeline.cpp
@@ -812,6 +812,7 @@ void Timeline::calculate_max_duration() {
812
// If no clips or effects exist, set min_time to 0
813
if (clips.empty() && effects.empty()) {
814
min_time = 0.0;
815
+ max_time = 0.0;
816
}
817
818
@@ -1302,6 +1303,10 @@ void Timeline::SetJsonValue(const Json::Value root) {
1302
1303
preview_width = info.width;
1304
preview_height = info.height;
1305
1306
+ // Resort (and recalculate min/max duration)
1307
+ sort_clips();
1308
+ sort_effects();
1309
+
1310
// Re-open if needed
1311
if (was_open)
1312
Open();
0 commit comments