sc/source/filter/lotus/op.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 53e02d723d1e91f94d6788d1b2d3c637b2e359f8
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Aug 29 10:56:50 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Aug 29 16:19:51 2021 +0200

    be a little more readable
    
    Change-Id: Ic0f7dd5ead93aa7e3178dcc5128df615d1d7a4e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121218
    Tested-by: Jenkins
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx
index 62b5ebc8e220..44c766f8c163 100644
--- a/sc/source/filter/lotus/op.cxx
+++ b/sc/source/filter/lotus/op.cxx
@@ -205,7 +205,7 @@ void OP_NamedRange(LotusContext& rContext, SvStream& r, 
sal_uInt16 /*n*/)
     if (!r.good())
         return;
 
-    if (!(rContext.rDoc.ValidColRow( static_cast<SCCOL>(nColSt), nRowSt) && 
rContext.rDoc.ValidColRow( static_cast<SCCOL>(nColEnd), nRowEnd)))
+    if (!rContext.rDoc.ValidColRow(static_cast<SCCOL>(nColSt), nRowSt) || 
!rContext.rDoc.ValidColRow(static_cast<SCCOL>(nColEnd), nRowEnd))
         return;
 
     std::unique_ptr<LotusRange> pRange;

Reply via email to