]> git.donarmstrong.com Git - mothur.git/blobdiff - catchallcommand.cpp
changes for 1.16.0
[mothur.git] / catchallcommand.cpp
index 8e29d6294c942369b178eea7b3cf6a0c3e7ba272..69b9f04becdbb492fc69209837be5a0581123b99 100644 (file)
@@ -121,6 +121,11 @@ CatchAllCommand::CatchAllCommand(string option)  {
                        if (sharedfile == "not open") { sharedfile = ""; abort = true; }
                        else if (sharedfile == "not found") { sharedfile = "";   }
                        
+                       //check for shared file loaded during read.otu
+                       if (sharedfile == "") {
+                               if (globaldata->getSharedFile() != "") { sharedfile = globaldata->getSharedFile(); }
+                       }
+                       
                        string label = validParameter.validFile(parameters, "label", false);                    
                        if (label == "not found") { label = ""; }
                        else {