summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-03-11 09:56:20 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-04-14 10:16:37 +0200
commit754f7e8b234d91e69b3ffc39faf2aab31bc448ac (patch)
tree8bb355cbd2a9cb4cc806d08ae253052bddd07974 /sc
parentf61c4b9eb55ecf7d354c58d2ca4753ee33d69f77 (diff)
fix comparison operators
It seems the ranges are always distinct, so the < comparison always worked in practice, but the == comparison added by my 6810aa937caca1 is obviously incorrect. Change-Id: Ib7fcd36b5956901265248b34a4dc69e587cebe41 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131340 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/inc/sheetdatabuffer.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/inc/sheetdatabuffer.hxx b/sc/source/filter/inc/sheetdatabuffer.hxx
index 8002e6ee93f9..33366fde9f9e 100644
--- a/sc/source/filter/inc/sheetdatabuffer.hxx
+++ b/sc/source/filter/inc/sheetdatabuffer.hxx
@@ -199,14 +199,14 @@ private:
{
bool operator() (const RowRangeStyle& lhs, const RowRangeStyle& rhs) const
{
- return lhs.mnEndRow<rhs.mnStartRow;
+ return lhs.mnStartRow<rhs.mnStartRow;
}
};
struct StyleRowRangeCompEqual
{
bool operator() (const RowRangeStyle& lhs, const RowRangeStyle& rhs) const
{
- return lhs.mnEndRow==rhs.mnStartRow;
+ return lhs.mnStartRow==rhs.mnStartRow;
}
};
typedef ::o3tl::sorted_vector< RowRangeStyle, StyleRowRangeComp > RowStyles;