tdf#122607 sw: fix preservation of text frame cache entries
commit3d37463eec0c891243a8971a34903b2da01c9e24
authorMichael Stahl <Michael.Stahl@cib.de>
Mon, 29 Apr 2019 15:21:18 +0000 (29 17:21 +0200)
committerMichael Stahl <Michael.Stahl@cib.de>
Tue, 30 Apr 2019 13:28:03 +0000 (30 15:28 +0200)
treee1ebc0ab33b80543975ed167a34562719cc878ec
parent31ae7509003b1e650463ee1468c0b315ba13efe6
tdf#122607 sw: fix preservation of text frame cache entries

SwSaveSetLRUOfst would leave only 50 cache entries available for the
CalcLayout() to use; apparently it's not enough for this document.

The difference between the 1st loading/layout and the 3rd loading/layout
of the document is that in many paragraphs the cache entry is missing,
because the entires of the previous loads were clogging up the cache
and were preserved here, and the cache only has 50 available entries;
if enough entries are available, everything is positioned properly.

The idea with the 100 entries per visible shell actually comes from the
CVS initial import, where there was a comment suggesting that; but the
corresponding parameter was actually unused and removed in
7c704c78d3c652504c064b4ac7af55a2c1ee49bb.

Ideally we'd have time to investigate why a missing cache entry causes
the wrong position...

Change-Id: I64a72a94361dbf5717bbc709fa3bc9abbe18a37c
Reviewed-on: https://gerrit.libreoffice.org/71542
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
sw/source/core/bastyp/swcache.cxx
sw/source/core/inc/swcache.hxx
sw/source/core/text/txtcache.cxx
sw/source/core/view/viewsh.cxx