]> Creatis software - clitk.git/blobdiff - vv/vvSlicerManagerCommand.cxx
Delete widget first, the image data after
[clitk.git] / vv / vvSlicerManagerCommand.cxx
index 78745bc52324511e8ed534b4bf0ac38334170adf..cb2a394ec5a57c5f0e002cb383a9c3e2ca2b3713 100644 (file)
@@ -88,6 +88,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
       for (int i = 0; i < this->SM->GetNumberOfSlicers(); i++) {
         if (this->SM->GetSlicer(i)->GetCursorVisibility()) {
           this->SM->GetSlicer(i)->SetCursorVisibility(0);
+          this->SM->GetSlicer(i)->SetCornerAnnotationVisibility(0);
           this->SM->GetSlicer(i)->Render();
         }
       }
@@ -184,7 +185,7 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
           return;
         }
         if (KeyPress == "h") {
-          this->SM->SetCursorVisibility(0);
+          this->SM->SetCursorAndCornerAnnotationVisibility(0);
           this->SM->Render();
           return;
         }