X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=normalizesharedcommand.cpp;h=37cfb5daa98b4eeb850b44d60e5e9d80fa268de5;hb=264c8a3c759d9a999c485236e98dac98d4f0db5f;hp=d9405a5129dd238ee2992a2986289ffffd6ed167;hpb=e840ba0e90a2b2be39e0910e4be23dde6a14cbac;p=mothur.git diff --git a/normalizesharedcommand.cpp b/normalizesharedcommand.cpp index d9405a5..37cfb5d 100644 --- a/normalizesharedcommand.cpp +++ b/normalizesharedcommand.cpp @@ -381,6 +381,13 @@ int NormalizeSharedCommand::execute(){ m->mothurOut(outputFileName); m->mothurOutEndLine(); outputNames.push_back(outputFileName); outputTypes["shared"].push_back(outputFileName); m->mothurOutEndLine(); + //set shared file as new current sharedfile + string current = ""; + itTypes = outputTypes.find("shared"); + if (itTypes != outputTypes.end()) { + if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setSharedFile(current); } + } + return 0; } catch(exception& e) {