From: Diane Trout Date: Fri, 28 Jul 2006 22:01:33 +0000 (+0000) Subject: fix ticket:115 display sequences in order added X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=commitdiff_plain;h=3798c713abe45f51c256c2fd47bdbd594662b9cb fix ticket:115 display sequences in order added Somewhere the sequences were being reversed in the sequence of setups from extracting from the dialog and attaching them to mussa. For a really lazy solution I just changed one of the iterators to a reverse iterator and dealt with it. (Hopefully this won't now end up on http://thedailywtf.com/ --- diff --git a/qui/mussa_setup_dialog/MussaSetupWidget.cpp b/qui/mussa_setup_dialog/MussaSetupWidget.cpp index 62b909c..63e9845 100644 --- a/qui/mussa_setup_dialog/MussaSetupWidget.cpp +++ b/qui/mussa_setup_dialog/MussaSetupWidget.cpp @@ -107,8 +107,8 @@ Mussa* MussaSetupWidget::getMussaObject() list setupInfoList = seqSetupFrame->getSetupInfo(); - for (list::iterator setup_item = setupInfoList.begin(); - setup_item != setupInfoList.end(); + for (list::reverse_iterator setup_item = setupInfoList.rbegin(); + setup_item != setupInfoList.rend(); ++setup_item) { std::string seqName = (*setup_item)->getName();