diff --git a/src/mol-data/int/_spec/ordered-set.spec.ts b/src/mol-data/int/_spec/ordered-set.spec.ts index 00100fc370d5eff73e3c183e55782f41e12aea96..04ca406f4aa38c26ab4acf1d9522f15cdedc77cd 100644 --- a/src/mol-data/int/_spec/ordered-set.spec.ts +++ b/src/mol-data/int/_spec/ordered-set.spec.ts @@ -6,7 +6,7 @@ import OrderedSet from '../ordered-set' import Interval from '../interval' -import SortedArray from '../sorted-array'; +//import SortedArray from '../sorted-array'; describe('ordered set', () => { function ordSetToArray(set: OrderedSet) { diff --git a/src/mol-data/int/impl/ordered-set.ts b/src/mol-data/int/impl/ordered-set.ts index 6ae89045174a32ad677106917253b245a0f4b168..75e687316e535a346e399be0114825774826c5e8 100644 --- a/src/mol-data/int/impl/ordered-set.ts +++ b/src/mol-data/int/impl/ordered-set.ts @@ -126,7 +126,7 @@ function isSubsetIS(a: I, b: S) { const minA = I.min(a), maxA = I.max(a); if (maxA - minA + 1 === 0) return false; const minB = S.min(b), maxB = S.max(b); - return minB >= minA && maxA <= maxB; + return minB >= minA && maxB <= maxA; } function areRangesIntersecting(a: OrderedSetImpl, b: OrderedSetImpl) {