0ba941dfe2f00a5f8e62a44264489fd9253e504d kate Thu Feb 25 16:20:53 2021 -0800 Fix missed virt->multi changes. TODO: #define. diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 8d251cb..1a51d15 100644 --- src/hg/hgTracks/imageV2.c +++ src/hg/hgTracks/imageV2.c @@ -1364,31 +1364,31 @@ imageMultiple = IMAGEv2_DRAG_SCROLL_SZ; imgBox->portalStart = imgBox->chromStart; imgBox->portalEnd = imgBox->chromEnd; imgBox->portalWidth = imgBox->width - imgBox->sideLabelWidth; imgBox->showPortal = FALSE; // Guilty until proven innocent long positionWidth = (long)((imgBox->portalEnd - imgBox->portalStart) * imageMultiple); *chromStart = imgBox->portalStart - (long)( ((imageMultiple - 1)/2) * (imgBox->portalEnd - imgBox->portalStart)); if (*chromStart < 0) *chromStart = 0; *chromEnd = *chromStart + positionWidth; // get chrom size long virtChromSize = 0; -if (sameString(imgBox->chrom, "virt")) +if (sameString(imgBox->chrom, "multi")) { virtChromSize = virtSeqBaseCount; } else { struct chromInfo *chrInfo = hGetChromInfo(imgBox->db,imgBox->chrom); if (chrInfo == NULL) { *chromStart = imgBox->chromStart; *chromEnd = imgBox->chromEnd; return FALSE; } virtChromSize = chrInfo->size; } if (*chromEnd > virtChromSize) // Bound by chrom length