- Create a PlanarFigure of any kind
- Zoom in and pan to the right, so the figure vanishes to the left side of the scene until the figure is completely outside the scene
-> the annotations of the figure are displayed in the lower left corner of the renderwindow
- Zoom in and pan to the right, so the figure vanishes to the left side of the scene until the figure is completely outside the scene
Cause of this bug is that the methods PlanarFigureMapper2D::RenderAnnotations and PlanarFigureMapper2D::RenderQuantities do not check if the parameter anchorPoint has a positive value.
In the case described above, the anchorPoint is 0/0 (actually 1*10^-38) which causes the annotations to be misplaced.
The fix is an early out of the method (no annotation is rendered) when the anchorPoint is < mitk::eps.