From 21da35681862f945fc34dd00b2fa8ed0c12f75ae Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 28 Mar 2009 20:21:07 +0000 Subject: [PATCH] Bugfix: TimelineState not being stored correctly --- src/gui/panels/timeline-panel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gui/panels/timeline-panel.cpp b/src/gui/panels/timeline-panel.cpp index c90449124..db1c1759f 100644 --- a/src/gui/panels/timeline-panel.cpp +++ b/src/gui/panels/timeline-panel.cpp @@ -367,8 +367,13 @@ TimelinePanel::load_state(weak_ptr sequence) shared_ptr shared_sequence = sequence.lock(); if(shared_sequence) - return shared_ptr< timeline::TimelineState >( - new timeline::TimelineState(shared_sequence)); + { + shared_ptr new_state( + new timeline::TimelineState(shared_sequence)); + timelineStates[sequence] = new_state; + return new_state; + } + return shared_ptr< timeline::TimelineState >(); }