From 3d57f228e5ef3b04896e2930728f69135cf69c9a Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Mon, 23 Jun 2014 12:09:05 +0100
Subject: [PATCH] Duh. Fixed slice canvas mouse to world coordinate
 calculation.

---
 fsl/fslview/slicecanvas.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/fslview/slicecanvas.py b/fsl/fslview/slicecanvas.py
index 2b1a55b16..c7d4cd8bf 100644
--- a/fsl/fslview/slicecanvas.py
+++ b/fsl/fslview/slicecanvas.py
@@ -96,7 +96,7 @@ class SliceCanvas(wxgl.GLCanvas, props.HasProperties):
         """
 
         realHeight   = self.displayBounds.ylen
-        canvasHeight = float(self.GetClientSize().GetWidth())
+        canvasHeight = float(self.GetClientSize().GetHeight())
 
         if realHeight   == 0: return 0
         if canvasHeight == 0: return 0 
-- 
GitLab