Skip to content

BF: Fix some bugs in edit mode

Paul McCarthy requested to merge paulmc/fsleyes:bf/editor-anisotropic into main

A couple of subtle bug fixes in edit mode:

  • When clicking+dragging to edit/select voxels in an image with highly anisotropic voxels, the selectLine function could create a selection with zero length which would lead to crashes
  • When calculating the cursor/selection size for images with floating point imprecision in their pixdims (e.g. NIfTI2 images with double pixdims), the voxelBox function would produce cubiod regions of variable size - this would lead to the cursor/selection size changing depending on the cursor location.

Merge request reports