X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=1e1245f425b787523aeb69d7e9cf87c7086c851d;hb=47ac6a7e9e30deff5ff852c1585b4a86c5f52a8c;hp=4cf5a17e130ab70e3b14edc8851b585bdd5fb811;hpb=f8f487135ec75a4a88e1d325cad6375313b59a29;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 4cf5a17..1e1245f 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -909,15 +909,15 @@ void vvSlicer::UpdateDisplayExtent() return; } input->UpdateInformation(); + this->SetSlice( this->GetSlice() ); //SR: make sure the update let the slice in extents // Local copy of extent int w_ext[6]; int* ext = GetExtent(); copyExtent(ext, w_ext); // Set slice value - int s = this->Slice > ext[this->SliceOrientation*2+1] ? ext[this->SliceOrientation*2 + 1] : this->Slice; - w_ext[ this->SliceOrientation*2 ] = s; - w_ext[ this->SliceOrientation*2+1 ] = s; + w_ext[ this->SliceOrientation*2 ] = this->Slice; + w_ext[ this->SliceOrientation*2+1 ] = this->Slice; // Image actor this->ImageActor->SetDisplayExtent(w_ext);