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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 25 21:00:34 UTC 2018


 starmath/source/mathtype.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 71bbaa87a8dd4dd574607bfdc7824e0579a6ec57
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Nov 25 21:56:37 2018 +0300
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Nov 25 22:00:12 2018 +0100

    tdf#120703 PVS: (nArse == 0x2225) condition was masked
    
    ... since initial commit d791366863cf9659a01b171ce0e727bfe2f28cdf
    
    V560 A part of conditional expression is always false: (nArse == 0x2225).
    
    Change-Id: I4afb30f0c6c067d0e42e3fa15e5c2b2c1caa73b3
    Reviewed-on: https://gerrit.libreoffice.org/63996
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index dd44d32d332f..69c57f80b503 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -3070,14 +3070,14 @@ void MathType::HandleMath(SmNode *pNode)
         {
             nBias = 0xB; //typeface
         }
+        else if ((nArse == 0x2F) || (nArse == 0x2225))
+            nBias = 0x2; //typeface
         else if ((nArse > 0x2000) || (nArse == 0x00D7))
             nBias = 0x6; //typeface
         else if (nArse == 0x3d1)
             nBias = 0x4;
         else if ((nArse > 0xFF) && ((nArse < 0x393) || (nArse > 0x3c9)))
             nBias = 0xB; //typeface
-        else if ((nArse == 0x2F) || (nArse == 0x2225))
-            nBias = 0x2; //typeface
         else
             nBias = 0x3; //typeface
 


More information about the Libreoffice-commits mailing list