Issue 100060 - sw.SwAccessibleTextFrameView fails
Summary: sw.SwAccessibleTextFrameView fails
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: DEV300m42
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2009-03-09 16:51 UTC by
Modified: 2017-05-20 11:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description 2009-03-09 16:51:11 UTC
the unoapi test sw.SwAccessibleTextFrameView fails (strangely, only on solaris)
with lots of DisposedExceptions.

first document is zoomed to 15%, then to 100%

when zooming to 100%, the accessibility objects created by the test are disposed.

this calculates the old and new VisArea, which are ~90000x70000 and ~13000x13000.
then it first updates the accessibility objects (via SetZoomType) and second the
layout (via ~SwActKontext)

SwRootFrm::CheckViewLayout: called by ~SwActKontext
here the Rects of all layout frames are updated (moved in X direction by -38000)
specifically, the first page had an X offset of 40000 before, 1000 after

SwAccessibleContext::ChildrenScrolled: called by SetZoomType
here the Rect of the frames is compared both with the old VisArea and with the
new VisArea to determine if the frame is scrolled in or out
the objects are disposed here because the Rects are not updated to the new
position yet, and the old X offset (40k) is outside new VisArea (13k) (invalid

but simply updating the Rects before calling ChildrenScrolled does not seem a
good idea either, because in that case the Rects comparison with the old VisArea
would be invalid!
Comment 1 Marcus 2017-05-20 11:17:41 UTC
Reset assigne to the default "".