]> git.donarmstrong.com Git - mothur.git/blobdiff - readdistcommand.cpp
fixed bug in libshuff
[mothur.git] / readdistcommand.cpp
index 719740cf7589e121029197bb46e30bbdd62e6bda..f6b41951962b7ce6b85ae50a9958bc0408c13835 100644 (file)
@@ -72,7 +72,7 @@ ReadDistCommand::ReadDistCommand(string option){
                        if (columnfile != "") {
                                if (namefile == "") {  cout << "You need to provide a namefile if you are going to use the column format." << endl; abort = true; }
                        }
-               
+                       
                        //check for optional parameter and set defaults
                        // ...at some point should added some additional type checking...
                        //get user cutoff and precision or use defaults
@@ -93,6 +93,7 @@ ReadDistCommand::ReadDistCommand(string option){
                                else if (format == "matrix") { 
                                        groupMap = new GroupMap(groupfile);
                                        groupMap->readMap();
+       
                                        if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap;  }
                                        globaldata->gGroupmap = groupMap;
                                }