From 6881ce2baf4f466982b4b2ac5577abc49f3804bd Mon Sep 17 00:00:00 2001 From: Nicolas Roduit Date: Tue, 23 Apr 2024 11:18:41 +0200 Subject: [PATCH] Fix dicomizer editor tools #546 --- .../src/main/java/org/weasis/core/api/service/BundleTools.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasis-core/src/main/java/org/weasis/core/api/service/BundleTools.java b/weasis-core/src/main/java/org/weasis/core/api/service/BundleTools.java index cc3acea29..81d32415b 100755 --- a/weasis-core/src/main/java/org/weasis/core/api/service/BundleTools.java +++ b/weasis-core/src/main/java/org/weasis/core/api/service/BundleTools.java @@ -147,7 +147,7 @@ private static void registerToolBar(Insertable instance, SeriesViewerUI ui) { private static void registerTool(Insertable instance, SeriesViewerUI ui) { List tools = ui.getTools(); - if (instance instanceof DockableTool tool && tools.contains(tool)) { + if (instance instanceof DockableTool tool && !tools.contains(tool)) { tools.add(tool); LOGGER.debug("Add Tool [{}] for {}", tool, ui.clazz.getName()); }