fix(io): assertion/crash when loading DICOM with only one frame with SightViewer
Description
Assertion in ogre when loading DICOM with only one frame with SightViewer.
Steps to reproduce
- Launch SightViewer
- Load a DICOM with only one frame (you can copy a single DICOM file from
sight-data/sight/Patient/Dicom/image_281433
somewhere) - Assertion failed:
Assertion failed: s != 0.0, file C:\dev\sight-vcpkg-nonfree-2019\installed\x64-windows\include\OGRE\OgreVector.h, line 686
Proposal
- Fix the crash
Functional specifications
No change
Technical specifications
As @eduhamel suggested, prevent to compute an irrelevant dash line.
Test plan
- manual
- gui test