[Libreoffice-commits] core.git: sc/source

Julien Nabet serval2412 at yahoo.fr
Sat Nov 5 07:08:33 UTC 2016


 sc/source/core/data/columnspanset.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6fe0706f6726e5a5446c9f44e3d139cf73adeab9
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Nov 5 07:47:14 2016 +0100

    [loplugin:simplifybool]
    
    Change-Id: I20177b47fd756558430420710c0f497be49c8948
    Reviewed-on: https://gerrit.libreoffice.org/30584
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx
index 255c6fa..efb79d0e 100644
--- a/sc/source/core/data/columnspanset.cxx
+++ b/sc/source/core/data/columnspanset.cxx
@@ -385,7 +385,7 @@ bool SingleColumnSpanSet::empty() const
 {
     // Empty if there's only the 0..MAXROW span with false.
     ColumnSpansType::const_iterator it = maSpans.begin();
-    return (it->first == 0) && (it->second == false) && (++it != maSpans.end()) && (it->first == MAXROWCOUNT);
+    return (it->first == 0) && !(it->second) && (++it != maSpans.end()) && (it->first == MAXROWCOUNT);
 }
 
 }


More information about the Libreoffice-commits mailing list