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()); }