Skip to content

Commit

Permalink
BUGFIX: Invert settings don't do anything unless there is an == state…
Browse files Browse the repository at this point in the history
…ment in the if statements.
  • Loading branch information
raacampbell committed Jan 11, 2017
1 parent 6c47a19 commit 83b1568
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions masiv.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ function executeScroll(obj, nScrolls, scrollAction)

switch scrollAction
case 'zAxisScroll'
if masivSetting('navigation.scrollLayerInvert')
if masivSetting('navigation.scrollLayerInvert')==1
nScrolls=nScrolls*-1;
end

masivDebugTimingInfo(0, 'masiv:Calling mDisplay.seekZ',toc, 's')
stdout=obj.mainDisplay.seekZ(nScrolls);
if stdout
Expand All @@ -171,7 +172,7 @@ function executeScroll(obj, nScrolls, scrollAction)
end
case 'zoomScroll'
zoomRate=masivSetting('navigation.zoomRate'); %to zoom out
if masivSetting('navigation.scrollZoomInvert')
if masivSetting('navigation.scrollZoomInvert')==1
nScrolls=nScrolls*-1;
end
if nScrolls<0
Expand Down Expand Up @@ -221,7 +222,7 @@ function keyPanQueue(obj, xChange, yChange)
end

function executePan(obj, xMove,yMove)
if masivSetting('navigation.panModeInvert')
if masivSetting('navigation.panModeInvert')==1
xMove=-xMove;
yMove=-yMove;
end
Expand Down

1 comment on commit 83b1568

@raacampbell
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't fix anything (#15) but is benign so we can leave it.

Please sign in to comment.