GP-2564 revised fix for add memory reference dialog

This commit is contained in:
ghidra1 2022-09-29 08:09:43 -04:00
parent b88cf85d5c
commit 0114bac869
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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);
}
}
}