Skip to content
Snippets Groups Projects
Commit d9a5ca5f authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Recompute Hausdorff distance only if the feature point is selected

parent 6adb0c77
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,10 @@ public class DistancePanel extends ControlPanel {
sliderInput.setText(ControlPanelBuilder.doubleToStringLocale(DrawableFeaturePoints.DEFAULT_SIZE));
sliderInput.postActionEvent(); // Set correct position of slider
sliderInput.addActionListener((ActionEvent ae) -> {
if (!checkBox.isSelected()) {
return; // Recompute only if the feature point is selected
}
if (ControlPanelBuilder.TEXT_FIELD_BUTTON_PRESSED_MINUS.equals(ae.getActionCommand())
|| ControlPanelBuilder.TEXT_FIELD_BUTTON_PRESSED_PLUS.equals(ae.getActionCommand())) {
action.actionPerformed(new ActionEvent(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment