From 8e0bb5f6efe9544c12bdbee4298689fd3c7543b0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 5 Dec 2006 14:58:38 +0000 Subject: [PATCH] From Chris McGlone, "PlygonZ copy constructor: added allocation and copying of zarray" --- src/osgPlugins/ESRIShape/ESRIShape.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/ESRIShape/ESRIShape.cpp b/src/osgPlugins/ESRIShape/ESRIShape.cpp index 86e7301e6..cec390155 100644 --- a/src/osgPlugins/ESRIShape/ESRIShape.cpp +++ b/src/osgPlugins/ESRIShape/ESRIShape.cpp @@ -1003,10 +1003,12 @@ PolygonZ::PolygonZ(const PolygonZ &p): parts[i] = p.parts[i]; points = new Point[numPoints]; + zArray = new Double[numPoints]; // jcm mArray = new Double[numPoints]; for( i = 0; i < numPoints; i++ ) { points[i] = p.points[i]; + zArray[i] = p.zArray[i]; // jcm mArray[i] = p.mArray[i]; } }