GP-0 Corrected minor issue with BitFieldPlacementComponent

This commit is contained in:
ghidra1 2025-01-07 16:28:25 -05:00
parent cfffcf0c13
commit 01a4703198
2 changed files with 1 additions and 4 deletions

View file

@ -1105,7 +1105,7 @@ public class BitFieldPlacementComponent extends JPanel implements Scrollable {
int allocationEndOffset = offset + allocationBytes - 1;
int numComponents = struct.getNumComponents();
DataTypeComponent component = struct.getDefinedComponentAtOrAfterOffset(offset);
DataTypeComponent component = struct.getComponentContaining(offset);
while (component != null) {
if (component.getOffset() > allocationEndOffset) {
break;

View file

@ -195,9 +195,6 @@ public class CompEditorPanel extends CompositeEditorPanel {
model.setSelection(new int[] { dtc.getOrdinal() });
table.scrollToSelectedRow();
}
else {
model.setSelection(new FieldSelection());
}
}
});