From 362d2271721dd19de7a7f6f2271a349272ce51d8 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 22 Sep 2021 16:41:45 +0200 Subject: add some unittests for SwRegionRects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And fix two small bugs in SwRegionRects::Compress(). Change-Id: I8df7cc2e9d4d6ca78e3af711639e3fbae2e471ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122462 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- sw/inc/swregion.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/inc') diff --git a/sw/inc/swregion.hxx b/sw/inc/swregion.hxx index 1aa190712a8f..338a30649c7a 100644 --- a/sw/inc/swregion.hxx +++ b/sw/inc/swregion.hxx @@ -55,8 +55,9 @@ public: // Ensures all rectangles are within the origin area. void LimitToOrigin(); + enum CompressType { CompressExact, CompressFuzzy }; // Combine adjacent rectangles. - void Compress(); + void Compress( CompressType type ); const SwRect &GetOrigin() const { return m_aOrigin; } void ChangeOrigin( const SwRect &rRect ) { m_aOrigin = rRect; } -- cgit