]> Creatis software - clitk.git/commitdiff
Force update of display extents to fix linked navigation bug + move propagation out...
authorsrit <srit>
Wed, 16 Mar 2011 14:57:02 +0000 (14:57 +0000)
committersrit <srit>
Wed, 16 Mar 2011 14:57:02 +0000 (14:57 +0000)
vv/vvSlicerManager.cxx

index 7bc8d5829e3d64ebe8ebbea29bfc0581f1677b5c..b8976f698c86ab78eda2f7eacde5c053a3c37871 100644 (file)
@@ -691,12 +691,14 @@ void vvSlicerManager::UpdateLinkedNavigation(vvSlicer *slicer, bool bPropagate)
 
     camera->SetFocalPoint(focal);
     camera->SetPosition(position);
-
-    if(bPropagate)
-      for (std::list<std::string>::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++)
-        emit UpdateLinkedNavigation(*i, this);
+  
+    mSlicers[i]->ForceUpdateDisplayExtent();
   }
+  
   Render();
+  if(bPropagate)
+    for (std::list<std::string>::const_iterator i = mLinkedId.begin(); i != mLinkedId.end(); i++)
+      emit UpdateLinkedNavigation(*i, this);
 }
 //----------------------------------------------------------------------------