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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 4 21:45:29 UTC 2019


 sw/source/uibase/shells/basesh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dca7d930330dff70bf5835d3ae43d598df30f71b
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Thu Jul 4 22:12:02 2019 +0200
Commit:     Jim Raykowski <raykowj at gmail.com>
CommitDate: Thu Jul 4 23:44:45 2019 +0200

    cid#1448299: Constant expression result (sw/basesh)
    
    Change-Id: Id4fab1797be58acd179d6e0fc7c9be21c454e676
    Reviewed-on: https://gerrit.libreoffice.org/75105
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <raykowj at gmail.com>

diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 0c76cd643f9a..f84787aa5eb0 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2266,7 +2266,7 @@ void SwBaseShell::ExecBckCol(SfxRequest& rReq)
     const SfxItemSet* pArgs = rReq.GetArgs();
     sal_uInt16 nSlot(rReq.GetSlot());
 
-    if (!pArgs && ( nSlot != SID_BACKGROUND_COLOR || nSlot != SID_TABLE_CELL_BACKGROUND_COLOR ) )
+    if (!pArgs && nSlot != SID_BACKGROUND_COLOR && nSlot != SID_TABLE_CELL_BACKGROUND_COLOR)
     {
         return;
     }


More information about the Libreoffice-commits mailing list