sc/source/filter/inc/sheetdatabuffer.hxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 83d599fd7c530d14f70ac60bd673b66640191bf7
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Fri Mar 11 09:56:20 2022 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Fri Mar 11 23:09:57 2022 +0100

    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.lu...@collabora.com>

diff --git a/sc/source/filter/inc/sheetdatabuffer.hxx 
b/sc/source/filter/inc/sheetdatabuffer.hxx
index 7f4930bff450..0cca3f0c7c84 100644
--- a/sc/source/filter/inc/sheetdatabuffer.hxx
+++ b/sc/source/filter/inc/sheetdatabuffer.hxx
@@ -198,14 +198,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;

Reply via email to