From 56d923aa86bcb72169287a3c596de9c95343be6c Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 4 Sep 2012 09:57:57 +0200 Subject: [PATCH] Fixed bug with linked temporal images --- vv/vvSlicer.cxx | 2 +- vv/vvSlicerManager.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 2a5c924..f84011c 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -307,7 +307,7 @@ void vvSlicer::SetCurrentPosition(double x, double y, double z, int t) mCurrentBeforeSlicingTransform[1]=y; mCurrentBeforeSlicingTransform[2]=z; mSlicingTransform->GetInverse()->TransformPoint(mCurrentBeforeSlicingTransform,mCurrent); - mCurrentTSlice = t; + SetTSlice(t); } //------------------------------------------------------------------------------ diff --git a/vv/vvSlicerManager.cxx b/vv/vvSlicerManager.cxx index 8411f03..5affb4b 100644 --- a/vv/vvSlicerManager.cxx +++ b/vv/vvSlicerManager.cxx @@ -686,9 +686,7 @@ void vvSlicerManager::UpdateLinked(int slicer) z >= mSlicers[slicer]->GetInput()->GetWholeExtent()[4]-0.5 && z <= mSlicers[slicer]->GetInput()->GetWholeExtent()[5]+0.5) { for (std::list::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++) { - emit UpdateLinkManager(*i, slicer,mSlicers[slicer]->GetCurrentPosition()[0], - mSlicers[slicer]->GetCurrentPosition()[1], - mSlicers[slicer]->GetCurrentPosition()[2],mSlicers[slicer]->GetTSlice()); + emit UpdateLinkManager(*i, slicer, p[0], p[1], p[2], mSlicers[slicer]->GetTSlice()); } } } -- 2.47.1