From: srit Date: Wed, 16 Mar 2011 14:57:02 +0000 (+0000) Subject: Force update of display extents to fix linked navigation bug + move propagation out... X-Git-Tag: v1.2.0~166 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b1fc92a91244b405396b95f214cc78262f5c75d7;p=clitk.git Force update of display extents to fix linked navigation bug + move propagation out of loop --- 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); } //----------------------------------------------------------------------------