filter/source/graphicfilter/idxf/dxf2mtf.cxx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
New commits: commit 451976d841f26bf5254ba1c6645171c1f331da6b Author: Jochen Nitschke <[email protected]> Date: Sun May 7 22:46:58 2017 +0200 remove unused double unused since commit 60fd81d83a2dbcb64a38910de49f8e2620353702 loplugin:checkunusedparams in filter Change-Id: I69af38f19b0c39a778990bc62f3f6823c6d65f34 Reviewed-on: https://gerrit.libreoffice.org/37352 Tested-by: Jenkins <[email protected]> Reviewed-by: Noel Grandin <[email protected]> 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); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
