6b66802e4a900fb25d4d55c86b2625662f390021
kent
  Sat Jun 12 22:49:27 2010 -0700
Improved a few more comments.
diff --git src/hg/hgTracks/multiWig.c src/hg/hgTracks/multiWig.c
index 1f6ce87..be4e725 100644
--- src/hg/hgTracks/multiWig.c
+++ src/hg/hgTracks/multiWig.c
@@ -23,7 +23,7 @@
 static void multiWigDraw(struct track *tg, int seqStart, int seqEnd,
         struct hvGfx *hvg, int xOff, int yOff, int width, 
         MgFont *font, Color color, enum trackVisibility vis)
-/* Draw items in container. */
+/* Draw items in multiWig container. */
 {
 struct track *subtrack;
 char *aggregate = cartOrTdbString(cart, tg->tdb, "aggregate", NULL);
@@ -52,7 +52,7 @@
 }
 
 static int multiWigTotalHeight(struct track *tg, enum trackVisibility vis)
-/* Return total height of container. */
+/* Return total height of multiWigcontainer. */
 {
 char *aggregate = cartOrTdbString(cart, tg->tdb, "aggregate", NULL);
 boolean overlay = isOverlayTypeAggregate(aggregate);
@@ -64,6 +64,8 @@
     {
     if (isSubtrackVisible(subtrack))
 	{
+	// Logic is slightly complicated by fact we want to call the totalHeight
+	// method for each subtrack even if in overlay mode.
 	int oneHeight = subtrack->totalHeight(subtrack, vis);
 	if (!overlay)
 	    {
@@ -134,6 +136,7 @@
 }
 
 void multiWigLoadItems(struct track *track)
+/* Load multiWig items. */
 {
 containerLoadItems(track);
 struct track *subtrack;