[Libreoffice-commits] online.git: kit/Kit.cpp

Pranav Kant pranavk at collabora.co.uk
Thu Jul 20 15:40:17 UTC 2017


 kit/Kit.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a283942b00b1f28be6c47d8b61494f4c8c15c348
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Thu Jul 20 21:08:19 2017 +0530

    Fix a superfluous condition
    
    (a != 0 || a != 1) makes no sense. Author probably meant AND, not OR.
    
    Change-Id: If91954e9e48e5804c54380db8c99184ef0fcc1d2

diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index d3d865d0..228b87ab 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -1192,7 +1192,7 @@ private:
         }
         // 0 for preventing selection of the first always
         // 1 for preventing the new users from directly beoming the editors
-        if (_editorId != fastestUser && (maxSpeed != 0 || maxSpeed != 1)) {
+        if (_editorId != fastestUser && (maxSpeed != 0 && maxSpeed != 1)) {
             if (!_editorChangeWarning && _editorId != -1)
             {
                 _editorChangeWarning = true;


More information about the Libreoffice-commits mailing list