Commit f4755a20 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

BUG: some ivars were not copied in DeepCopy/ShallowCopy

parent 4e431253
......@@ -21,7 +21,7 @@
#include <vtkstd/algorithm>
#include <vtkstd/iterator>
vtkCxxRevisionMacro(vtkColorTransferFunction, "1.60");
vtkCxxRevisionMacro(vtkColorTransferFunction, "1.61");
vtkStandardNewMacro(vtkColorTransferFunction);
class vtkCTFNode
......@@ -849,6 +849,9 @@ void vtkColorTransferFunction::DeepCopy( vtkColorTransferFunction *f )
if (f != NULL)
{
this->Clamping = f->Clamping;
this->ColorSpace = f->ColorSpace;
this->HSVWrap = f->HSVWrap;
int i;
this->RemoveAllPoints();
for ( i = 0; i < f->GetSize(); i++ )
......@@ -867,6 +870,9 @@ void vtkColorTransferFunction::ShallowCopy( vtkColorTransferFunction *f )
if (f != NULL)
{
this->Clamping = f->Clamping;
this->ColorSpace = f->ColorSpace;
this->HSVWrap = f->HSVWrap;
int i;
this->RemoveAllPoints();
for ( i = 0; i < f->GetSize(); i++ )
......
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