X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=mothurout.cpp;h=2900c7ec4fc8e0df952163554f6fefb7e622cd64;hp=fc16d204b142e5a6f55783f56bc52aafb8e6a4d1;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=c48d91112209b841444923670dca5454da0e2a4d diff --git a/mothurout.cpp b/mothurout.cpp index fc16d20..2900c7e 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -2242,9 +2242,11 @@ map MothurOut::readNames(string namefile, unsigned long int& numSeq /************************************************************/ int MothurOut::checkName(string& name) { try { - for (int i = 0; i < name.length(); i++) { - if (name[i] == ':') { name[i] = '_'; changedSeqNames = true; } - } + if (modifyNames) { + for (int i = 0; i < name.length(); i++) { + if (name[i] == ':') { name[i] = '_'; changedSeqNames = true; } + } + } return 0; } catch(exception& e) {