Page MenuHomePhabricator

RefitVisibleRect doesn't work properly with multiple mitkDisplayGeometries
Closed, ResolvedPublic

Description

Problem:
The method mitk::DisplayGeometry::RefitVisibleRect uses a static bool variable to prevent recursion. The problem here currently is that when using multiple display geometries the other objects also call the method and return directly false, because the static variable (which is a global one!!) is set to true.

Solution:
The easiest solution is to set the static variable to false before notifying the other objects. (very small change)

Event Timeline

added attachment with fix

[71da8a]: Merge branch 'bug-9721-fix-refitvisiblerect-rebased'

Merged commits:

2011-10-13 15:34:57 Markus Engel [eecd83]
setting static variable before calling Modified()