Page MenuHomePhabricator

Correction tool crashes when drawing outside of image
Closed, ResolvedPublic

Description

When drawing a line in the lower area of the image. Then enclose the segmented area with another area, which also is outside the image, it *SOMETIMES* crashes.

Screenshot pending..

Event Timeline

User gaehlert has pushed new remote branch:

bug-19620-CorrectionToolIndexBoundariesCrash

[ab006a]: Merge branch 'bug-19620-CorrectionToolIndexBoundariesCrash'

Merged commits:

2016-03-30 16:37:23 Nils Gaehlert [720216]
corrects strange behaviour when adding only small regions


2016-03-23 16:11:46 Nils Gaehlert [b4ce02]
will erase parameters of methods that are not needed.

All methods having eraseColor and fillColor as parameters are updated as there exist private variables m_EraseColor and m_FillColor.


2016-03-23 15:58:42 Nils Gaehlert [e6be2d]
will fix crashes when using the correction tool for segmentation and segment out of the image boundaries.

A new method ensureIndexInImage now always checks if an index is in the image and if not clips the index to image boundaries.