• Miklos Vajna's avatar
    tdf#113445 sw: avoid hitting loop control with a dozen of in-table sections · cb8b20ab
    Miklos Vajna yazdı
    The bugdoc has an (outer) table containing a single cell, which has an
    (inner) table with 12 cells, all content is inside sections, one section
    / cell.
    
    This relatively simple setup can already hit the loop control in
    lcl_RecalcRow(), as the SwLayNotify dtor always does invalidation in an
    async way, so the loop control's counter is incremented after each and
    every table cell.
    
    Instead of increasing the max tolerance in lcl_RecalcRow() (one can
    easily construct a document where the bug is still there even if the max
    is set to 100 instead of the current 10 iterations), just calculate the
    lower synchronously.
    
    Change-Id: Ifbffe13e5f2f237e1578bdd3e17d4d8b7c34806d
    Reviewed-on: https://gerrit.libreoffice.org/43848Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
    Tested-by: 's avatarJenkins <ci@libreoffice.org>
    cb8b20ab