1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00

Bug 510773 - [traditional rendering] overlay mangles one in next cell

This patch fixes a variable overlay issue, that causes two overlays to
become mistakenly mangled together.

Change-Id: Idbee5b95f85810144dd71e2a397bd38fcd0bcec5
This commit is contained in:
Marc Dumais 2017-01-20 11:07:51 -05:00
parent 2899b9098e
commit ac8224f763

View file

@ -391,7 +391,7 @@ public class RenderingAddressInfo extends Rendering
// If any address within the item width is within the visible range we want it in the filtered
// result
BigInteger itemStart = item.getAddress();
BigInteger itemEnd = item.getAddress().add(item.getRangeInAddressableUnits());
BigInteger itemEnd = item.getAddress().add(item.getRangeInAddressableUnits()).subtract(BigInteger.ONE);
boolean itemStartIsInRange = isWithinRange(itemStart, startAddress, endAddress);
boolean itemEndIsInRange = isWithinRange(itemEnd, startAddress, endAddress);
boolean itemSpansOverVisibleRange = isWithinRange(startAddress, itemStart, itemEnd)