mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
GP-0 corrected latent issue in AbstractEditFunctionSignatureDialog
This commit is contained in:
+2
-10
@@ -179,16 +179,12 @@ public abstract class AbstractEditFunctionSignatureDialog extends DialogComponen
|
|||||||
mainPanel.add(buildSignaturePanel());
|
mainPanel.add(buildSignaturePanel());
|
||||||
mainPanel.add(buildAttributePanel());
|
mainPanel.add(buildAttributePanel());
|
||||||
if (allowCallFixup) {
|
if (allowCallFixup) {
|
||||||
installCallFixupWidget(mainPanel);
|
JPanel callFixupPanel = buildCallFixupPanel();
|
||||||
|
mainPanel.add(callFixupPanel != null ? callFixupPanel : buildSpacerPanel());
|
||||||
}
|
}
|
||||||
return mainPanel;
|
return mainPanel;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void installCallFixupWidget(JPanel parentPanel) {
|
|
||||||
JPanel callFixupPanel = buildCallFixupPanel();
|
|
||||||
parentPanel.add(callFixupPanel != null ? callFixupPanel : buildSpacerPanel());
|
|
||||||
}
|
|
||||||
|
|
||||||
private JPanel buildSignaturePanel() {
|
private JPanel buildSignaturePanel() {
|
||||||
JPanel signaturePanel = new JPanel();
|
JPanel signaturePanel = new JPanel();
|
||||||
signaturePanel.setLayout(new BoxLayout(signaturePanel, BoxLayout.X_AXIS));
|
signaturePanel.setLayout(new BoxLayout(signaturePanel, BoxLayout.X_AXIS));
|
||||||
@@ -252,10 +248,6 @@ public abstract class AbstractEditFunctionSignatureDialog extends DialogComponen
|
|||||||
|
|
||||||
private JPanel buildCallFixupPanel() {
|
private JPanel buildCallFixupPanel() {
|
||||||
|
|
||||||
if (allowCallFixup) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
JPanel callFixupPanel = new JPanel();
|
JPanel callFixupPanel = new JPanel();
|
||||||
callFixupPanel.setLayout(new BoxLayout(callFixupPanel, BoxLayout.X_AXIS));
|
callFixupPanel.setLayout(new BoxLayout(callFixupPanel, BoxLayout.X_AXIS));
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -106,7 +106,7 @@ public class FunctionTestDouble implements Function {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCallFixup() {
|
public String getCallFixup() {
|
||||||
throw new UnsupportedOperationException();
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user