src/hg/lib/pal.c 1.14

1.14 2009/07/06 17:43:08 braney
make sure hgPal is in sync with composite multiz tracks
Index: src/hg/lib/pal.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/pal.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -B -U 4 -r1.13 -r1.14
--- src/hg/lib/pal.c	6 Jan 2009 17:26:22 -0000	1.13
+++ src/hg/lib/pal.c	6 Jul 2009 17:43:08 -0000	1.14
@@ -47,8 +47,11 @@
 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);
 
 /* since the species selection dialog doesn't list
@@ -269,8 +272,12 @@
 printf("characters (enter zero for no headers)<BR>");
 
 printf("<BR>");
 struct trackDb *maftdb = hTrackDbForTrack(database, mafTable);
+
+/* get maf parent (if any) */
+maftdb->parent = hCompositeTrackDbForSubtrack(database,maftdb);
+
 wigMafSpeciesTable(cart, maftdb, mafTable, database);
 
 addButtons();