From aa9048fa68f876fb70a1c7090bb17dac55a6acd6 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 6 Dec 2008 18:15:08 +0000 Subject: [PATCH] Added more STL slickness --- src/gui/panels/timeline-panel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/panels/timeline-panel.cpp b/src/gui/panels/timeline-panel.cpp index 32babb713..e4df79e65 100644 --- a/src/gui/panels/timeline-panel.cpp +++ b/src/gui/panels/timeline-panel.cpp @@ -219,8 +219,8 @@ void TimelinePanel::update_notebook() { std::map > - old_pages(notebook_pages); - notebook_pages.clear(); + old_pages; + old_pages.swap(notebook_pages); BOOST_FOREACH( shared_ptr< model::Sequence > sequence, project->get_sequences() )