diff --git a/fsl/fslview/locationpanel.py b/fsl/fslview/locationpanel.py index 942e2eab607dcc4a3e83126223bc9e0d2b61a3e7..d4036e5f958ea93ac02f016592a12a181b29f3a1 100644 --- a/fsl/fslview/locationpanel.py +++ b/fsl/fslview/locationpanel.py @@ -96,9 +96,6 @@ class LocationPanel(wx.Panel, props.HasProperties): self.addListener( 'voxelLocation', lName, self._voxelLocationChanged) - self.addListener( 'voxelLocation', - lName, - self._updateVoxelValue) self._selectedImageChanged() self._worldLocationChanged() @@ -142,6 +139,8 @@ class LocationPanel(wx.Panel, props.HasProperties): worldLoc = image.voxToWorld([voxLoc])[0] worldVoxLoc = image.worldToVox([self.imageList.location.xyz])[0] + self._updateVoxelValue() + # if the current image list location is already equal to the # new voxel location, don't change it. The voxel location, # transformed to world coordinates, will be in the centre of