Commit a950cb50 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix SEGV in HppManipulationWidgetsPlugin::drawContactSurface

parent 9a925f6b
......@@ -156,7 +156,7 @@ namespace hpp {
osgVector4 color (0, 1, 0, 1);
osgVector3 norm(0, 0, 0);
CORBA::Long iPts = (j == 0) ? 0 : indexes[j - 1];
graphics::WindowsManager::Vec3ArrayPtr_t ps;
graphics::WindowsManager::Vec3ArrayPtr_t ps(new osg::Vec3Array);
ps->resize (indexes[j] - iPts);
if (ps->size() > 3) {
osgVector3 a((float)(points[iPts][0] - points[iPts + 1][0]),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment