From d77abe0f5124b092a706a57249c5c714bbcfbf20 Mon Sep 17 00:00:00 2001 From: Michael Kunz Date: Mon, 19 Aug 2024 08:35:03 +0200 Subject: [PATCH] Chart: fix binding disposal when removing plugins --- chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java b/chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java index ad3719933..9f8cc3f81 100644 --- a/chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java +++ b/chartfx-chart/src/main/java/io/fair_acc/chartfx/Chart.java @@ -833,7 +833,7 @@ protected void pluginAdded(final ChartPlugin plugin) { protected void pluginRemoved(final ChartPlugin plugin) { plugin.setChart(null); final Group group = pluginGroups.remove(plugin); - Bindings.unbindContent(group, plugin.getChartChildren()); + Bindings.unbindContent(group.getChildren(), plugin.getChartChildren()); group.getChildren().clear(); pluginsArea.getChildren().remove(group); }