diff --git a/modules/juce_graphics/detail/juce_Ranges.h b/modules/juce_graphics/detail/juce_Ranges.h index ab8c8e7279..48ae6afa08 100644 --- a/modules/juce_graphics/detail/juce_Ranges.h +++ b/modules/juce_graphics/detail/juce_Ranges.h @@ -800,6 +800,13 @@ public: return result; } + RangedValues getIntersectionsStartingAtZeroWith (Range r) const + { + auto result = getIntersectionsWith (r); + result.drop ({ (int64) 0, r.getStart() }); + return result; + } + const auto& getRanges() const { return ranges; } size_t size() const