diff --git a/src/libcode/vx_shapedata/shapedata.cc b/src/libcode/vx_shapedata/shapedata.cc index 0c429d769..f3a8dc14f 100644 --- a/src/libcode/vx_shapedata/shapedata.cc +++ b/src/libcode/vx_shapedata/shapedata.cc @@ -733,12 +733,12 @@ Polyline ShapeData::convex_hull_old() const vector Index(2*data.ny()); - //if ( !Index ) { - // - // mlog << Error << "\nShapedata::convex_hull() -> " - // << "memory allocation error\n\n"; - // exit(1); - //} + if ( Index.size() < 2*data.ny() ) { + + mlog << Error << "\nShapedata::convex_hull() -> " + << "memory allocation error\n\n"; + exit(1); + } n = 0; @@ -1891,7 +1891,7 @@ void ShapeData::threshold(SingleThresh t) { /////////////////////////////////////////////////////////////////////////////// -void ShapeData::set_to_1_or_0() +void ShapeData::set_to_1_or_0() { int j; double v;