Commit 94cce966 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

Set color ivars direct, be sure to delete strings

Fixing up a few errors that showed up in Valgrind on the dashboards.

Change-Id: I9df407c67dab08fcf3c607ff42e5d5d46246434e
parent cd2f8f8e
......@@ -71,6 +71,7 @@ vtkCMLMoleculeReader::vtkCMLMoleculeReader()
//----------------------------------------------------------------------------
vtkCMLMoleculeReader::~vtkCMLMoleculeReader()
{
this->SetFileName(NULL);
}
//----------------------------------------------------------------------------
......
......@@ -56,7 +56,7 @@ vtkMoleculeMapper::vtkMoleculeMapper()
BondRadius(0.075)
{
// Initialize ivars:
this->SetBondColor(50, 50, 50);
this->BondColor[0] = this->BondColor[1] = this->BondColor[2] = 50;
// Setup glyph sources
vtkNew<vtkSphereSource> sphere;
......
Markdown is supported
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