6da74d6034610d2ce3fe7ac708110c0e0e3d3a1c kate Tue Mar 2 17:02:43 2021 -0800 Define string literal for multi-region chrom name. refs #26385 diff --git src/hg/hgTracks/imageV2.c src/hg/hgTracks/imageV2.c index 1a51d15..3c8c085 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, "multi")) +if (sameString(imgBox->chrom, MULTI_REGION_VIRTUAL_CHROM_NAME)) { 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