diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-09-22 16:41:45 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-09-23 00:08:41 +0200 |
commit | 362d2271721dd19de7a7f6f2271a349272ce51d8 (patch) | |
tree | cfdb768f728125de92842923ee4c09ef420a8c09 /sw/inc | |
parent | 05f5c12da968bd53337e832805894c048aad2c6c (diff) |
add some unittests for SwRegionRects
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 <l.lunak@collabora.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/swregion.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |