From 7cd354ee7d47c497286bd2007ca8d0f068889d8e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 27 Nov 2017 16:24:29 +0100 Subject: [PATCH] Eliminate warning --- src/ifcconvert/SvgSerializer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcconvert/SvgSerializer.cpp b/src/ifcconvert/SvgSerializer.cpp index c11e1592ce..695923cd4b 100644 --- a/src/ifcconvert/SvgSerializer.cpp +++ b/src/ifcconvert/SvgSerializer.cpp @@ -225,13 +225,13 @@ void SvgSerializer::write(path_object& p, const TopoDS_Wire& wire) { GCPnts_QuasiUniformDeflection tessellater(crv, settings().deflection_tolerance()); // NB: Start at 2: 1-based and skip the first point, assume it coincides with p1. for (int i = 2; i <= tessellater.NbPoints(); ++i) { - gp_Pnt p = tessellater.Value(i); + gp_Pnt pi = tessellater.Value(i); path.add(" L"); - xcoords.push_back(path.add(p.X())); + xcoords.push_back(path.add(pi.X())); path.add(","); - ycoords.push_back(path.add(p.Y())); + ycoords.push_back(path.add(pi.Y())); - growBoundingBox(p.X(), p.Y()); + growBoundingBox(pi.X(), pi.Y()); } } else { // Either a Geom_Line or something unimplemented,