X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=collectsharedcommand.cpp;h=8c04545d61fc321382122526bc53e4c2892321eb;hb=ec43347d04dbb2a7d9d9ecfb5fc556e21ad8c2bc;hp=217045a4a1fc5dc0c83986f3b3a0345b755e1f6c;hpb=09a01fb51eea9e81409d367410c831394193fd86;p=mothur.git diff --git a/collectsharedcommand.cpp b/collectsharedcommand.cpp index 217045a..8c04545 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,10 @@ 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"; for(int i=0;i