From b1fc92a91244b405396b95f214cc78262f5c75d7 Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 16 Mar 2011 14:57:02 +0000 Subject: [PATCH] Force update of display extents to fix linked navigation bug + move propagation out of loop --- vv/vvSlicerManager.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vv/vvSlicerManager.cxx b/vv/vvSlicerManager.cxx index 7bc8d58..b8976f6 100644 --- a/vv/vvSlicerManager.cxx +++ b/vv/vvSlicerManager.cxx @@ -691,12 +691,14 @@ void vvSlicerManager::UpdateLinkedNavigation(vvSlicer *slicer, bool bPropagate) camera->SetFocalPoint(focal); camera->SetPosition(position); - - if(bPropagate) - for (std::list::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++) - emit UpdateLinkedNavigation(*i, this); + + mSlicers[i]->ForceUpdateDisplayExtent(); } + Render(); + if(bPropagate) + for (std::list::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++) + emit UpdateLinkedNavigation(*i, this); } //---------------------------------------------------------------------------- -- 2.47.1