diff --git a/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/KeyObjectToolBar.java b/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/KeyObjectToolBar.java index 4edabf6c1..27b54e9a7 100755 --- a/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/KeyObjectToolBar.java +++ b/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/KeyObjectToolBar.java @@ -230,11 +230,13 @@ private void editKo( DicomModel dicomModel = (DicomModel) selectedDicomSeries.getTagValue(TagW.ExplorerModel); if (dicomModel != null) { dicomModel.removeHiddenSpecialElement(list.getSelectedValue()); - if (selectedView2d instanceof View2d view2d) { - boolean needToRepaint = view2d.updateKOSelectedState(selectedView2d.getImage()); - if (needToRepaint) { - evtMgr.updateKeyObjectComponentsListener(selectedView2d); - repaint(); + for (ViewCanvas canvas : selectedView2dContainer.getView2ds()) { + if (canvas instanceof View2d view2d) { + boolean needToRepaint = view2d.updateKOSelectedState(view2d.getImage()); + if (needToRepaint && view2d==selectedView2d) { + evtMgr.updateKeyObjectComponentsListener(selectedView2d); + repaint(); + } } } } diff --git a/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/View2dContainer.java b/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/View2dContainer.java index 94b327990..8b2145c73 100755 --- a/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/View2dContainer.java +++ b/weasis-dicom/weasis-dicom-viewer2d/src/main/java/org/weasis/dicom/viewer2d/View2dContainer.java @@ -687,6 +687,11 @@ private void setKOSpecialElement( if (updateAll) { List> viewList = getImagePanels(true); for (ViewCanvas view : viewList) { + if (forceUpdate + || updatedKOSelection == view.getActionValue(ActionW.KO_SELECTION.cmd())) { + KOManager.updateKOFilter( + view, forceUpdate ? updatedKOSelection : null, enableFilter, -1); + } ((View2d) view).updateKOButtonVisibleState(); } } else {