Apache OpenOffice (AOO) Bugzilla – Issue 100060
sw.SwAccessibleTextFrameView fails
Last modified: 2017-05-20 11:17:41 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. SwView::_SetZoom: 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 comparison) 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!
Reset assigne to the default "issues@openoffice.apache.org".