Skip to content

Commit

Permalink
Merge pull request aces#42 from tsherif/slice_series_fix
Browse files Browse the repository at this point in the history
Fixed bug in volume slice method defaults. Fixes aces#41.
  • Loading branch information
tsherif committed May 21, 2014
2 parents bf0bbab + a5412a4 commit 8f23319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/brainbrowser/volume-viewer/volume-loaders/minc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
// Prototype for minc volume.
var minc_volume_proto = {
slice: function(axis, slice_num, time) {
slice_num = slice_num || this.position[axis];
time = time || this.current_time;
slice_num = slice_num === undefined ? this.position[axis] : slice_num;
time = time === undefined ? this.current_time : time;

var slice = this.data.slice(axis, slice_num, time);

Expand Down
4 changes: 2 additions & 2 deletions src/brainbrowser/volume-viewer/volume-loaders/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
var overlay_proto = {

slice: function(axis, slice_num, time) {
slice_num = slice_num || this.position[axis];
time = time || this.current_time;
slice_num = slice_num === undefined ? this.position[axis] : slice_num;
time = time === undefined ? this.current_time : time;

var overlay_volume = this;
var slices = [];
Expand Down

0 comments on commit 8f23319

Please sign in to comment.