summaryrefslogtreecommitdiff
path: root/freetype
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-09-26 13:42:54 +0300
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-09-27 11:17:42 -0400
commit50a72d18900a7faf01ab176bef04dc880f59317a (patch)
tree3200370e3ca7956bfdaf16408cf030c62160b013 /freetype
parentb04ffe037117c35ebd05b41569379e8acded4fbc (diff)
Fix crash on Mac when a11y in use, and avoid infinite loop, fdo#47275
The code used static_cast blindly even if the object not necessarily was of the assumed subclass. Crash followed. Use dynamic_cast instead to be able to check, like the corresponding code for GTK a11y. After that fix we then got a nice infinite loop whn an object apparently is its own parent. Detect that and break out. Whether accessibility for the affected parts of the GUI actually works now for its real use cases, no idea. But anything is better than a crash... Change-Id: I862234e168db0bd19d185b0f1f73b733b570cac4 Signed-off-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'freetype')
0 files changed, 0 insertions, 0 deletions