https://bugs.freedesktop.org/show_bug.cgi?id=80926

--- Comment #7 from Jan-Marek Glogowski <[email protected]> ---
Created attachment 102765
  --> https://bugs.freedesktop.org/attachment.cgi?id=102765&action=edit
Instrumented LO dbgutil run - gdb output.

The attached text shows the origin problem. Actually it also happens in all OOo
versions I tested. The layouting code is already broken.

Actually
    commit 09f50c017fe106b7bf94f60933667b55130ea1b5  
and
    commit 120922361a5928ea4437ffe253ce209abd7060b0
really broke it.

For the trace I was using a document with two pages and two "lines".

All ratios are approximations. The actualy sizews are much larger, more like
"10000 x 25000" for the two page view. All the layouting in LO is absolute. 

So LO is doing the initial full layouting (incl. anchored frames) just for the
visible pages, partial layouting for the for the next page / rest. At this
point the view is still "initial", and just has space for a single page. All
the layouting of the "hidden" pages is going to be done later. So the 2nd page
is invisible.

The document with two pages has the size "100 x 400". The initial view is "120
x 150". Every page has the size "80 x 150". There are spaces between and gray
area around the page.

And there comes the "resize view". This changes the visual area to "220 x 150",
but the layouting is still based on the single page layout (100 x 400).

So the actually IsShortCut checks the new view against the old layout, which
basically says, that the 2nd page is still outside of the view, so the
additional layouting can be skipped:

sw/source/core/layout/layact.cxx:1146    bRet = true;

An initial "fix" is included in private/jmux/layout-fixes, which prevents
moving anchors of invalid pages on view resize. Actually this code should never
happen.

I'm still looking for a real fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to