Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Dumais2017-02-13 06:26:31 -0500
committerMarc Dumais2017-02-13 06:26:31 -0500
commit45a4c5e568ee3f36c076c5212bf0082d6c900de3 (patch)
tree27d2c00e0a183ca34924bf519d2c4e99b39611ad
parent63ed21e19438f667b53e2ce1f5c123f80b3ee26c (diff)
downloadorg.eclipse.cdt-45a4c5e568ee3f36c076c5212bf0082d6c900de3.tar.gz
org.eclipse.cdt-45a4c5e568ee3f36c076c5212bf0082d6c900de3.tar.xz
org.eclipse.cdt-45a4c5e568ee3f36c076c5212bf0082d6c900de3.zip
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: I3c95c400bb490c8e7efdd96d107e3af3f4fc7906
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.traditional/src/org/eclipse/cdt/debug/ui/memory/traditional/RenderingAddressInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.traditional/src/org/eclipse/cdt/debug/ui/memory/traditional/RenderingAddressInfo.java b/memory/org.eclipse.cdt.debug.ui.memory.traditional/src/org/eclipse/cdt/debug/ui/memory/traditional/RenderingAddressInfo.java
index 95405a0a51..9f662cf273 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.traditional/src/org/eclipse/cdt/debug/ui/memory/traditional/RenderingAddressInfo.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.traditional/src/org/eclipse/cdt/debug/ui/memory/traditional/RenderingAddressInfo.java
@@ -386,7 +386,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)

Back to the top