mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2025-02-16 17:22:46 +00:00
Group3D localiser dialog
Small fix to group3d localiser to correctly enable settings button in dialog when the dialog is reopened
This commit is contained in:
parent
62148351c6
commit
8274f00db4
@ -810,6 +810,9 @@ public class TMGroupLocInfo implements GroupLocInfo {
|
||||
for (int i = 0; i < nSubDetections; i++) {
|
||||
|
||||
localisation = getParentDetection().getSubDetection(i).getLocalisation();
|
||||
if (localisation == null) {
|
||||
continue;
|
||||
}
|
||||
angles = localisation.getAngles();
|
||||
angleErrors = localisation.getAngleErrors();
|
||||
|
||||
@ -879,6 +882,10 @@ public class TMGroupLocInfo implements GroupLocInfo {
|
||||
totalVectors += nVectors;
|
||||
}
|
||||
|
||||
if (totalVectors == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
//now create the separate arrays for different ambiguities.
|
||||
/**
|
||||
*
|
||||
|
@ -31,7 +31,7 @@ public class PamguardVersionInfo {
|
||||
* Version number, major version.minorversion.sub-release.
|
||||
* Note: can't go higher than sub-release 'f'
|
||||
*/
|
||||
static public final String version = "2.02.08";
|
||||
static public final String version = "2.02.08a";
|
||||
|
||||
/**
|
||||
* Release date
|
||||
|
@ -173,6 +173,9 @@ public class GroupLocSettingPaneFX extends SettingsPane<Group3DParams>{
|
||||
algoOptsButton.setDisable(true);
|
||||
return;
|
||||
}
|
||||
// also enable / disable the more options button ...
|
||||
algoOptsButton.setDisable(localiserAlgorithm.hasParams() == false);
|
||||
|
||||
/**
|
||||
* Need to immediately tell the algorithm which input we're using so that it can
|
||||
* show the correct settings...
|
||||
@ -208,10 +211,7 @@ public class GroupLocSettingPaneFX extends SettingsPane<Group3DParams>{
|
||||
// newPane.setDetectionSource(sourcePanel.getSource());
|
||||
}
|
||||
algorithmSourcePane = newPane;
|
||||
|
||||
// also enable / disable the more options button ...
|
||||
algoOptsButton.setDisable(localiserAlgorithm.hasParams() == false);
|
||||
|
||||
|
||||
|
||||
repackDialog();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user