b631149ad0b160816498f5a06607c88cae3e3d96
braney
  Fri Nov 6 13:18:26 2015 -0800
oops, fix a problem with bigChain filtering that Angie found

diff --git src/hg/hgTracks/chainTrack.c src/hg/hgTracks/chainTrack.c
index ad96941..78599ce 100644
--- src/hg/hgTracks/chainTrack.c
+++ src/hg/hgTracks/chainTrack.c
@@ -316,31 +316,31 @@
 hFreeConn(&conn);
 }
 
 void bigChainLoadItems(struct track *tg)
 /* Load up all of the chains from correct table into tg->items 
  * item list.  At this stage to conserve memory for other tracks
  * we don't load the links into the components list until draw time. */
 {
 struct linkedFeatures *list = NULL, *lf;
 int qs;
 char *optionChrStr;
 struct cartOptions *chainCart;
 
 chainCart = (struct cartOptions *) tg->extraUiData;
 
-optionChrStr = cartStringClosestToHome(cart, tg->tdb, FALSE,
+optionChrStr = cartOptionalStringClosestToHome(cart, tg->tdb, FALSE,
 	"chromFilter");
 
 struct bbiFile *bbi =  fetchBbiForTrack(tg);
 struct lm *lm = lmInit(0);
 struct bigBedInterval *bb, *bbList =  bigBedIntervalQuery(bbi, chromName, winStart, winEnd, 0, lm);
 int fieldCount = 11;
 char *bedRow[fieldCount];
 char startBuf[16], endBuf[16];
 
 for (bb = bbList; bb != NULL; bb = bb->next)
     {
     bigBedIntervalToRow(bb, chromName, startBuf, endBuf, bedRow, ArraySize(bedRow));
     if ((optionChrStr != NULL) && !startsWith(optionChrStr, bedRow[7]))
         continue;