diff --git a/fsl/fsleyes/profiles/orthoeditprofile.py b/fsl/fsleyes/profiles/orthoeditprofile.py index b0ecc45786d36bad5d4c10810923d962b0dcf3b6..f547e1950aa40dc6dc943681f0f0ae2e347304a0 100644 --- a/fsl/fsleyes/profiles/orthoeditprofile.py +++ b/fsl/fsleyes/profiles/orthoeditprofile.py @@ -840,16 +840,16 @@ class OrthoEditProfile(orthoviewprofile.OrthoViewProfile): On all lower performance settings, only the source canvas is updated. """ perf = self._viewPanel.getSceneOptions().performance - if perf == 4: - if mousePos is None or canvasPos is None: - self._viewPanel.Refresh() - - # If running in high performance mode, we make - # the canvas location track the edit cursor - # location, so that the other two canvases - # update to display the current cursor location. - else: - self._navModeLeftMouseDrag(ev, canvas, mousePos, canvasPos) + + # If running in high performance mode, we make + # the canvas location track the edit cursor + # location, so that the other two canvases + # update to display the current cursor location. + if perf == 4 and \ + (mousePos is not None) and \ + (canvasPos is not None): + self._navModeLeftMouseDrag(ev, canvas, mousePos, canvasPos) + else: canvas.Refresh()