mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-09-13 21:56:19 +00:00
GP-2564 revised fix for add memory reference dialog
This commit is contained in:
parent
b88cf85d5c
commit
0114bac869
|
@ -273,7 +273,7 @@ class EditMemoryReferencePanel extends EditReferencePanel {
|
|||
}
|
||||
else if (fromOpIndex >= 0) {
|
||||
Scalar s = fromCu.getScalar(fromOpIndex);
|
||||
if (s == null) {
|
||||
if (s == null && fromSubIndex >= 0) {
|
||||
List<?> objs =
|
||||
((Instruction) fromCu).getDefaultOperandRepresentationList(fromOpIndex);
|
||||
if (objs != null) {
|
||||
|
|
|
@ -432,7 +432,7 @@ class InstructionPanel extends JPanel implements ChangeListener {
|
|||
public void mousePressed(MouseEvent e) {
|
||||
if (!locked) {
|
||||
JLabel label = (JLabel) e.getSource();
|
||||
updateLabels(getLabelIndex(label), 0);
|
||||
updateLabels(getLabelIndex(label), -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue