diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-05-07 22:46:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 02:15:18 +0200 |
commit | 451976d841f26bf5254ba1c6645171c1f331da6b (patch) | |
tree | 66ce7c0ec760c2479982e764aece8a5591f7b2d4 | |
parent | 0c363500584194f75dfa7f229ee932a759a95bbe (diff) |
remove unused double
unused since commit 60fd81d83a2dbcb64a38910de49f8e2620353702
loplugin:checkunusedparams in filter
Change-Id: I69af38f19b0c39a778990bc62f3f6823c6d65f34
Reviewed-on: https://gerrit.libreoffice.org/37352
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | filter/source/graphicfilter/idxf/dxf2mtf.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/filter/source/graphicfilter/idxf/dxf2mtf.cxx b/filter/source/graphicfilter/idxf/dxf2mtf.cxx index b3ad3f6b8890..a30da0c25912 100644 --- a/filter/source/graphicfilter/idxf/dxf2mtf.cxx +++ b/filter/source/graphicfilter/idxf/dxf2mtf.cxx @@ -493,7 +493,6 @@ void DXF2GDIMetaFile::DrawAttribEntity(const DXFAttribEntity & rE, const DXFTran void DXF2GDIMetaFile::DrawPolyLineEntity(const DXFPolyLineEntity & rE, const DXFTransform & rTransform) { sal_uInt16 i,nPolySize; - double fW; const DXFBasicEntity * pBE; nPolySize=0; @@ -504,21 +503,12 @@ void DXF2GDIMetaFile::DrawPolyLineEntity(const DXFPolyLineEntity & rE, const DXF } if (nPolySize<2) return; tools::Polygon aPoly(nPolySize); - fW=0.0; pBE=rE.pSucc; for (i=0; i<nPolySize; i++) { rTransform.Transform(static_cast<const DXFVertexEntity*>(pBE)->aP0,aPoly[i]); - if (i+1<nPolySize || (rE.nFlags&1)!=0) { - if (static_cast<const DXFVertexEntity*>(pBE)->fSWidth>=0.0) fW+=static_cast<const DXFVertexEntity*>(pBE)->fSWidth; - else fW+=rE.fSWidth; - if (static_cast<const DXFVertexEntity*>(pBE)->fEWidth>=0.0) fW+=static_cast<const DXFVertexEntity*>(pBE)->fEWidth; - else fW+=rE.fEWidth; - } pBE=pBE->pSucc; } - fW/=2.0; - if ((rE.nFlags&1)!=0) fW/=(double)nPolySize; - else fW/=(double)(nPolySize-1); + if (SetLineAttribute(rE)) { if ((rE.nFlags&1)!=0) pVirDev->DrawPolygon(aPoly); else pVirDev->DrawPolyLine(aPoly); |