mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 03:45:04 +08:00
GP-0 Corrected minor issue with BitFieldPlacementComponent
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
-3
@@ -195,9 +195,6 @@ public class CompEditorPanel extends CompositeEditorPanel {
|
||||
model.setSelection(new int[] { dtc.getOrdinal() });
|
||||
table.scrollToSelectedRow();
|
||||
}
|
||||
else {
|
||||
model.setSelection(new FieldSelection());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user