Skip to content

Conversation

@maxpietsch
Copy link
Member

Proposed fix for #940: mrview: src/gui/mrview/displayable.h:309: void MR::GUI::MRView::Displayable::update_levels(): Assertionstd::isfinite (value_min)' failed.

I added value_min = 0.0f; and value_max = 0.0f; for all colourmaps in case the cursor is outside the FOV. This gives nan as lower and upper limit for the colourbar which I think is sensible.

@maxpietsch maxpietsch changed the title mrview: outside FOV: set value_min and value_max to zero #940 mrview: outside FOV: set value_min and value_max to zero Mar 30, 2017
@maxpietsch
Copy link
Member Author

Any objections against merging?

@jdtournier
Copy link
Member

Haven't tested, but I can't see any issues with this. But since this isn't merging to master, go for it - it'll get more extensive testing in tag_0.3.16, and it's not going to break anything for users...

@maxpietsch maxpietsch merged commit 86a548b into tag_0.3.16 Mar 31, 2017
@maxpietsch maxpietsch deleted the mrview_fix_windowing_outside_FOV branch March 31, 2017 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants