Skip to content

Commit 5b27d1a

Browse files
committed
Merge remote-tracking branch 'origin/GT-3290_ghidravore_listing_problems' into patch
2 parents 3185cb6 + 215d11f commit 5b27d1a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/listingpanel/ListingModelAdapter.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,10 @@ private Data findHighestArrayData(Data arrayData) {
449449

450450
protected void resetIndexMap() {
451451
AddressIndexMap previous = addressToIndexMap.reset();
452-
if (removeUnviewableAddressRanges()) {
453-
AddressBasedIndexMapper mapper =
454-
new AddressBasedIndexMapper(previous, addressToIndexMap);
455-
for (LayoutModelListener listener : listeners) {
456-
listener.modelSizeChanged(mapper);
457-
}
452+
removeUnviewableAddressRanges();
453+
AddressBasedIndexMapper mapper = new AddressBasedIndexMapper(previous, addressToIndexMap);
454+
for (LayoutModelListener listener : listeners) {
455+
listener.modelSizeChanged(mapper);
458456
}
459457
}
460458

@@ -495,8 +493,8 @@ private void checkIndex(BigInteger index, AddressSet addressSet) {
495493
if (indexBefore == null) {
496494
indexBefore = BigInteger.ZERO;
497495
}
498-
if (indexAfter.subtract(indexBefore).compareTo(
499-
addressToIndexMap.getMiniumUnviewableGapSize()) > 0) {
496+
if (indexAfter.subtract(indexBefore)
497+
.compareTo(addressToIndexMap.getMiniumUnviewableGapSize()) > 0) {
500498
Address start = addressToIndexMap.getAddress(indexBefore.add(BigInteger.ONE));
501499
Address end = addressToIndexMap.getAddress(indexAfter.subtract(BigInteger.ONE));
502500
if (start != null && end != null &&

0 commit comments

Comments
 (0)