Skip to content
Snippets Groups Projects
Commit 27c81913 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Location panel updates voxel location on image change

parent bc211943
No related branches found
No related tags found
No related merge requests found
......@@ -225,10 +225,13 @@ class LocationPanel(wx.Panel, props.HasProperties):
self._voxelPanel.Layout()
oldLoc = self.imageList.location.xyz
voxLoc = image.worldToVox([oldLoc])[0]
for i in range(3):
self.voxelLocation.setLimits(i, 0, image.shape[i] - 1)
self.voxelLocation.xyz = voxLoc
# The voxel coordinates may have inadvertently been
# changed due to a change in their limits. So we'll
# restore the old location from the real world
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment