From 1e1f99663b7c296918d9444f5e5761a74182f1f8 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Mon, 23 Jun 2014 15:40:48 +0100
Subject: [PATCH] Re-fixed voxel/world coordinate synchronisation, which I
 broke, whilst fixing, a couple of commits back.

---
 fsl/fslview/locationpanel.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fsl/fslview/locationpanel.py b/fsl/fslview/locationpanel.py
index 942e2eab6..d4036e5f9 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
-- 
GitLab