summaryrefslogtreecommitdiff
path: root/sw/inc/swregion.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-09-22 16:41:45 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-09-23 00:08:41 +0200
commit362d2271721dd19de7a7f6f2271a349272ce51d8 (patch)
treecfdb768f728125de92842923ee4c09ef420a8c09 /sw/inc/swregion.hxx
parent05f5c12da968bd53337e832805894c048aad2c6c (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/swregion.hxx')
-rw-r--r--sw/inc/swregion.hxx3
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; }