fix ticket:115 display sequences in order added
authorDiane Trout <diane@caltech.edu>
Fri, 28 Jul 2006 22:01:33 +0000 (22:01 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 28 Jul 2006 22:01:33 +0000 (22:01 +0000)
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/

qui/mussa_setup_dialog/MussaSetupWidget.cpp

index 62b909c6f950d5e44b19dfc78fc6e3321f0097c5..63e9845274c6ed9c43c8ff9064d662dff27a332c 100644 (file)
@@ -107,8 +107,8 @@ Mussa* MussaSetupWidget::getMussaObject()
 
   list<SetupInfo *> setupInfoList = seqSetupFrame->getSetupInfo();
   
-  for (list<SetupInfo *>::iterator setup_item = setupInfoList.begin();
-       setup_item != setupInfoList.end();
+  for (list<SetupInfo *>::reverse_iterator setup_item = setupInfoList.rbegin();
+       setup_item != setupInfoList.rend();
        ++setup_item)
   {
     std::string seqName = (*setup_item)->getName();