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

Julien Nabet serval2412 at yahoo.fr
Sat Mar 23 05:51:20 PDT 2013


 filter/source/graphicfilter/ios2met/ios2met.cxx |   18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

New commits:
commit ef23a1138257fe6cd53039dca40bc874a228e223
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 23 13:49:08 2013 +0100

    coverity#441160 Logically dead code
    
    Change-Id: I697aad17986b1cd874311716873ed75358d3cae4

diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx
index c98011e..6f711d0 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -1682,14 +1682,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
             else {
                 *pOS2MET >> nMix;
                 if (nMix==0) {
-                    if (nA==1) switch (nP) {
-                        case 1: aAttr.eLinMix=aDefAttr.eLinMix; break;
-                        case 2: aAttr.eChrMix=aDefAttr.eChrMix; break;
-                        case 3: aAttr.eMrkMix=aDefAttr.eMrkMix; break;
-                        case 4: aAttr.ePatMix=aDefAttr.ePatMix; break;
-                        case 5: aAttr.eImgMix=aDefAttr.eImgMix; break;
-                    }
-                    else switch (nP) {
+                    switch (nP) {
                         case 1: aAttr.eLinBgMix=aDefAttr.eLinBgMix; break;
                         case 2: aAttr.eChrBgMix=aDefAttr.eChrBgMix; break;
                         case 3: aAttr.eMrkBgMix=aDefAttr.eMrkBgMix; break;
@@ -1699,14 +1692,7 @@ void OS2METReader::ReadOrder(sal_uInt16 nOrderID, sal_uInt16 nOrderLen)
                 }
                 else {
                     eROP=OS2MixToRasterOp(nMix);
-                    if (nA==1) switch (nP) {
-                        case 1: aAttr.eLinMix=eROP; break;
-                        case 2: aAttr.eChrMix=eROP; break;
-                        case 3: aAttr.eMrkMix=eROP; break;
-                        case 4: aAttr.ePatMix=eROP; break;
-                        case 5: aAttr.eImgMix=eROP; break;
-                    }
-                    else switch (nP) {
+                    switch (nP) {
                         case 1: aAttr.eLinBgMix=eROP; break;
                         case 2: aAttr.eChrBgMix=eROP; break;
                         case 3: aAttr.eMrkBgMix=eROP; break;


More information about the Libreoffice-commits mailing list