X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=collectsharedcommand.cpp;h=b3f798145bc4de3abe460aa0e8dbccd8825178c6;hb=addc715b6d7ea52440751cec10edad03e1a19b37;hp=217045a4a1fc5dc0c83986f3b3a0345b755e1f6c;hpb=70ac1dc59244e259b1a972385d490d2ac7f511c0;p=mothur.git diff --git a/collectsharedcommand.cpp b/collectsharedcommand.cpp index 217045a..b3f7981 100644 --- a/collectsharedcommand.cpp +++ b/collectsharedcommand.cpp @@ -108,9 +108,10 @@ int CollectSharedCommand::execute(){ SharedList = globaldata->gSharedList; order = SharedList->getSharedOrderVector(); } - + set orderList; + while(order != NULL){ - + orderList.insert(order->getLabel()); if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(order->getLabel()) == 1){ //create collectors curve cCurve = new Collect(order, cDisplays); @@ -137,7 +138,11 @@ int CollectSharedCommand::execute(){ count++; } - + set::iterator i; + for(i = globaldata->labels.begin(); i != globaldata->labels.end(); ++i) + if(orderList.count(*i) == 0) + cout << "'" << *i << "'" << " is not a valid label.\n"; + globaldata->clearLabels(); for(int i=0;i