1018: Avoid assertion failure in SELECT pop-up for non-current tab
commit6b9be71150478e19404a55f5c594d59ec33cd6b8
authorKalle Olavi Niemitalo <kon@iki.fi>
Tue, 22 Jul 2008 09:13:27 +0000 (22 12:13 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Tue, 22 Jul 2008 09:13:27 +0000 (22 12:13 +0300)
tree6cd046aecc408fa901f1923ee32be31e326481bc
parent7116daf43eeedfd1924261f587585b3df9c1c644
1018: Avoid assertion failure in SELECT pop-up for non-current tab

Check in refresh_view() whether the tab is still current; if not, skip
the draw_doc() and draw_frames() calls because draw_current_link()
called within them asserts that the tab is current.  However, do
always call print_screen_status(), because that handles non-current
tabs correctly too.

I think it was not yet possible to trigger the assertion failure with
setTimeout, because input.value modifications by ECMAScript do not
trigger a redraw (bug 1035).
NEWS
src/viewer/text/draw.c