7bc24686024ec14d351ab208b5179ab251d7c463
tdreszer
  Fri Oct 14 16:34:15 2011 -0700
Major work on bedFilt, psl and wigMaf to make them properly composite ready.
diff --git src/hg/lib/pal.c src/hg/lib/pal.c
index 1164f71..719a00d 100644
--- src/hg/lib/pal.c
+++ src/hg/lib/pal.c
@@ -40,31 +40,31 @@
 /* output a list of genePreds in pal format */
 {
 if (list == NULL)
     return 0;
 
 char *mafTable = cartString(cart, hgtaCGIGeneMafTable); 
 char *database = sqlGetDatabase(conn);
 struct trackDb *maftdb = hTrackDbForTrack(database, mafTable);
 struct wigMafSpecies *wmSpecies;
 int groupCnt;
 
 /* get maf parent (if any) */
 maftdb->parent = hCompositeTrackDbForSubtrack(database,maftdb);
 
 /* this queries the state of the getSpecies dialog */
-wigMafGetSpecies(cart, maftdb, database, &wmSpecies, &groupCnt);
+wigMafGetSpecies(cart, maftdb, maftdb->track, database, &wmSpecies, &groupCnt);
 
 /* since the species selection dialog doesn't list
  * the reference species, we just automatically include
  * it */
 struct slName *includeList = slNameNew(database);
 
 /* now make a list of all species that are on */
 for(; wmSpecies; wmSpecies = wmSpecies->next)
     {
     if (wmSpecies->on)
 	{
 	struct slName *newName = slNameNew(wmSpecies->name);
 	slAddHead(&includeList, newName);
 	}
     }