X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=normalizesharedcommand.cpp;fp=normalizesharedcommand.cpp;h=37cfb5daa98b4eeb850b44d60e5e9d80fa268de5;hb=348de0f8b17d84ede77081dcf67bd6ef43496677;hp=d9405a5129dd238ee2992a2986289ffffd6ed167;hpb=5e031adc86a1fc125c4abb3d4048f209d52f9b6d;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) {