Skip to content

Commit

Permalink
put back missing header and use vtk SafeDownCast, re #11706
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed May 13, 2015
1 parent 782fd86 commit 811369e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <pqServerManagerModel.h>
#include <pqSMAdaptor.h>

#include <vtkCallbackCommand.h>
#include <vtkSMDoubleVectorProperty.h>
#include <vtkSMProxy.h>

Expand Down Expand Up @@ -311,7 +312,8 @@ void ColorUpdater::observeColorScaleEdited(pqPipelineRepresentation *repr, Color
ccdata.csel = cs;
CRChangeCallback->SetClientData(&ccdata);
// install callback
vtkSMDoubleVectorProperty *points = lutProxy->GetProperty("RGBPoints");
vtkSMDoubleVectorProperty *points =
vtkSMDoubleVectorProperty::SafeDownCast(lutProxy->GetProperty("RGBPoints"));
points->AddObserver(vtkCommand::ModifiedEvent, CRChangeCallback);
}

Expand Down

0 comments on commit 811369e

Please sign in to comment.