11c1c560b88d430fd2c6967a86d2e87109806357
max
  Fri Jan 24 09:15:03 2014 -0800
corrections after code review refs #12524. These changes probably don'tneed to reviewed anymore, as Angie has already seen them, I copied them into
the ticket #12524.

diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c
index 8b57742..ba43a29 100644
--- src/hg/hgTracks/wigTrack.c
+++ src/hg/hgTracks/wigTrack.c
@@ -1324,41 +1324,41 @@
     /*	Now that we know what Span to draw, see if this item should be
      *	drawn at all.
      */
     if (usingDataSpan == wi->span)
 	{
 	/*	Check our data file, see if we need to open a new one */
 	if (differentStringNullOk(currentFile,""))
 	    {
 	    if (differentStringNullOk(currentFile,wi->file))
 		{
 		if (wibFH > 0)
 		    {
 		    udcFileClose(&wibFH);
 		    freeMem(currentFile);
 		    }
-                currentFile = hCloneRewriteFileName(wi->file);
+                currentFile = hReplaceGbdb(wi->file);
 		wibFH = udcFileMayOpen(currentFile, NULL);
-		if ((struct udcFile*)-1 == wibFH)
+		if (wibFH==NULL)
 		    errAbort("hgTracks/wigLoadPreDraw: failed to open wiggle %s", currentFile);
 		}
 	    }
 	else
 	    {
-            currentFile = hCloneRewriteFileName(wi->file);
+            currentFile = hReplaceGbdb(wi->file);
             wibFH = udcFileMayOpen(currentFile, NULL);
-	    if ((struct udcFile*)-1 == wibFH)
+	    if (wibFH==NULL)
 		errAbort("hgTracks/wigLoadPreDraw: failed to open wiggle %s", currentFile);
 	    }
 /*	Ready to draw, what do we know:
  *	the feature being processed:
  *	chrom coords:  [wi->start : wi-end)
  *
  *	The data to be drawn: to be read from file f at offset wi->Offset
  *	data points available: wi->Count, representing wi->Span bases
  *	for each data point
  *
  *	The drawing window, in pixels:
  *	xOff = left margin, yOff = top margin, h = height of drawing window
  *	drawing window in chrom coords: seqStart, seqEnd
  *      'basesPerPixel' is known, 'pixelsPerBase' is known
  */