diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 10:03:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 12:50:25 +0100 |
commit | cb02551714ca65145d4476f3525c0c7ad1d04f66 (patch) | |
tree | 0bf123a860acc466a01d2e0f9dd28fada7d25785 | |
parent | 30bebeefa0b6bccae7d15937509f506e4cc0c139 (diff) |
coverity#1242472 gold, Identical code for different branches
Change-Id: Ibdba24ef03ee4732e216b32b3f9e665706e96e4a
-rw-r--r-- | filter/source/graphicfilter/icgm/class5.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/source/graphicfilter/icgm/class5.cxx b/filter/source/graphicfilter/icgm/class5.cxx index 99c2a814414e..a1a9bfb039ba 100644 --- a/filter/source/graphicfilter/icgm/class5.cxx +++ b/filter/source/graphicfilter/icgm/class5.cxx @@ -55,7 +55,9 @@ void CGM::ImplDoClass5() else nWidth = (sal_uInt32)ImplGetFloat( pElement->eRealPrecision, pElement->nRealSize ) * 25; // scaling in 1/4 mm - pElement->aLineBundle.nLineWidth = nWidth; + ( pElement->nAspectSourceFlags & ASF_LINEWIDTH ) + ? pElement->pLineBundle->nLineWidth = nWidth + : pElement->aLineBundle.nLineWidth = nWidth; } break; case 0x04 : /*Line Color*/ @@ -91,7 +93,7 @@ void CGM::ImplDoClass5() else nWidth = (sal_uInt32)ImplGetFloat( pElement->eRealPrecision, pElement->nRealSize ) * 25; ( pElement->nAspectSourceFlags & ASF_MARKERSIZE ) - ? pElement->aMarkerBundle.nMarkerSize = nWidth + ? pElement->pMarkerBundle->nMarkerSize = nWidth : pElement->aMarkerBundle.nMarkerSize = nWidth; } break; @@ -269,7 +271,7 @@ void CGM::ImplDoClass5() else nWidth = (sal_uInt32)ImplGetFloat( pElement->eRealPrecision, pElement->nRealSize ) * 25; ( pElement->nAspectSourceFlags & ASF_EDGEWIDTH ) - ? pElement->aEdgeBundle.nEdgeWidth = nWidth + ? pElement->pEdgeBundle->nEdgeWidth = nWidth : pElement->aEdgeBundle.nEdgeWidth = nWidth; } break; |