mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Fix display of integer arrays
In e0aae02, the `++` was dropped from the index reference in this loop, but
that means the first item on each row of an integer array is incorrectly
repeated.
Restore the ++ so the array index is incremented across the line.
This commit is contained in:
committed by
dragonmacher
parent
ce80e056b8
commit
d817b07388
@@ -102,7 +102,7 @@ public class ArrayValuesFieldFactory extends FieldFactory {
|
||||
|
||||
List<FieldElement> elements = new ArrayList<>();
|
||||
for (int i = 0; i < itemCount; i++) {
|
||||
Data child = parent.getComponent(index);
|
||||
Data child = parent.getComponent(index++);
|
||||
boolean isLastItem = isLastLine && (i == itemCount - 1);
|
||||
String value = getDisplayValue(child, !isLastItem);
|
||||
AttributedString as =
|
||||
|
||||
Reference in New Issue
Block a user