diff --git a/src/src/Interaction/ActorDraggableInteractorStyle.cpp b/src/src/Interaction/ActorDraggableInteractorStyle.cpp index 7732f8f..788d5ea 100644 --- a/src/src/Interaction/ActorDraggableInteractorStyle.cpp +++ b/src/src/Interaction/ActorDraggableInteractorStyle.cpp @@ -408,10 +408,6 @@ void ActorDraggableInteractorStyle::WindowLevel() { this->WindowLevelCurrentPosition[0] = rwi->GetEventPosition()[0]; this->WindowLevelCurrentPosition[1] = rwi->GetEventPosition()[1]; - if (this->HandleObservers && - this->HasObserver(vtkCommand::WindowLevelEvent)) { - this->InvokeEvent(vtkCommand::WindowLevelEvent, this); - } if (this->CurrentImageProperty) { int *size = this->CurrentRenderer->GetSize(); @@ -460,6 +456,10 @@ void ActorDraggableInteractorStyle::WindowLevel() { this->CurrentImageProperty->SetColorLevel(newLevel); this->Interactor->Render(); + if (this->HandleObservers && + this->HasObserver(vtkCommand::WindowLevelEvent)) { + this->InvokeEvent(vtkCommand::WindowLevelEvent, this); + } } }