From fa8ffff2bc630030df29be49e0779da63398d7ba Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Mon, 27 Jun 2011 11:48:47 +0200 Subject: [PATCH] Removed call to UpdateOrientation in SetFusion and SetOverlay to avoid changing slice when reloading. --- vv/vvSlicer.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 6b52ea1..302da7e 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -369,7 +369,8 @@ void vvSlicer::SetOverlay(vvImage::Pointer overlay) this->GetRenderer()->AddActor(mOverlayActor); //Synchronize orientation and slice - this->SetSliceOrientation(this->SliceOrientation); + AdjustResliceToSliceOrientation(mOverlayReslice); + this->UpdateDisplayExtent(); this->SetTSlice(mCurrentTSlice); } } @@ -412,7 +413,8 @@ void vvSlicer::SetFusion(vvImage::Pointer fusion) } //Synchronize orientation and slice - this->SetSliceOrientation(this->SliceOrientation); + AdjustResliceToSliceOrientation(mFusionReslice); + this->UpdateDisplayExtent(); this->SetTSlice(mCurrentTSlice); } } -- 2.47.1