sw/source/ui/index/cntex.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6709d973db6be0d848bf28d1f5994a842f09058a
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Mar 31 22:09:24 2013 +0200

    coverity#704129: Operands don't affect result
    
    Change-Id: I6faf86c3a41296ba4a267a58d7d0814e526b85a8
    Reviewed-on: https://gerrit.libreoffice.org/3141
    Reviewed-by: Luboš Luňák <l.lu...@suse.cz>
    Tested-by: Luboš Luňák <l.lu...@suse.cz>

diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index 921f0ba..a695b02 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -292,7 +292,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
             lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CHART, 
 0 != (nsSwTOOElements::TOO_CHART    &nOLEOptions       ));
             lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_CALC,  
 0 != (nsSwTOOElements::TOO_CALC &nOLEOptions           ));
             lcl_SetBOOLProp(xInfo, xIdxProps, UNO_NAME_CREATE_FROM_STAR_DRAW,  
 0 != (nsSwTOOElements::TOO_DRAW_IMPRESS&nOLEOptions));
-            lcl_SetBOOLProp(xInfo, xIdxProps, 
UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS, 0 != 
(nsSwTOOElements::TOO_OTHER|nOLEOptions       ));
+            lcl_SetBOOLProp(xInfo, xIdxProps, 
UNO_NAME_CREATE_FROM_OTHER_EMBEDDED_OBJECTS, 0 != (nsSwTOOElements::TOO_OTHER & 
nOLEOptions));
         }
         const SwForm* pForm = GetForm(eCurrentTOXType);
         if(bInitialCreate || !nPage || nPage == TOX_PAGE_ENTRY)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to