diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-23 13:49:08 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-23 13:49:08 +0100 |
commit | ef23a1138257fe6cd53039dca40bc874a228e223 (patch) | |
tree | aa7515bc0251eb497d8eb2e5adf5f1c70ede86f2 /filter | |
parent | Fix wrong copy paste, should be UNDERLINE_DASHDOT and not UNDERLINE_DOTTED (diff) | |
download | core-ef23a1138257fe6cd53039dca40bc874a228e223.tar.gz core-ef23a1138257fe6cd53039dca40bc874a228e223.zip |
coverity#441160 Logically dead code
Change-Id: I697aad17986b1cd874311716873ed75358d3cae4
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/ios2met/ios2met.cxx | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx index c98011e84e36..6f711d081349 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; |