From d6693ff931c5288db77841ccfde012885e494aee Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 20 Jul 2013 21:41:26 +0000 Subject: [PATCH] Representation surface style initialization fix submitted by ckimmig --- src/ifcgeom/IfcRepresentationShapeItem.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcRepresentationShapeItem.h b/src/ifcgeom/IfcRepresentationShapeItem.h index db0a37a0fc..3ecb2215b2 100644 --- a/src/ifcgeom/IfcRepresentationShapeItem.h +++ b/src/ifcgeom/IfcRepresentationShapeItem.h @@ -35,10 +35,11 @@ namespace IfcGeom { IfcRepresentationShapeItem(const gp_GTrsf& placement, const TopoDS_Shape& shape, const SurfaceStyle* style) : placement(placement), shape(shape), style(style) {} IfcRepresentationShapeItem(const gp_GTrsf& placement, const TopoDS_Shape& shape) - : placement(placement), shape(shape) {} + : placement(placement), shape(shape), style(0) {} IfcRepresentationShapeItem(const TopoDS_Shape& shape, const SurfaceStyle* style) : shape(shape), style(style) {} - IfcRepresentationShapeItem(const TopoDS_Shape& shape) : shape(shape) {} + IfcRepresentationShapeItem(const TopoDS_Shape& shape) + : shape(shape), style(0) {} void move(const gp_GTrsf& trsf) { placement.Multiply(trsf); } const TopoDS_Shape& Shape() const { return shape; } const gp_GTrsf& Placement() const { return placement; }