add some unittests for SwRegionRects

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 22 September 2021 22:08 UTC

And fix two small bugs in SwRegionRects::Compress().

Change-Id: I8df7cc2e9d4d6ca78e3af711639e3fbae2e471ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122462

362d2271721d add some unittests for SwRegionRects
sw/CppunitTest_sw_uwriter.mk | 1 +
sw/inc/swregion.hxx | 3 +-
sw/qa/core/test_region.cxx | 108 +++++++++++++++++++++++++++++++++++++
sw/source/core/bastyp/swregion.cxx | 32 ++++-------
sw/source/core/view/viewsh.cxx | 4 +-
5 files changed, 124 insertions(+), 24 deletions(-)

Upstream: cgit.freedesktop.org


  • Share