Commit 26a48d43 authored by Scott Wittenburg's avatar Scott Wittenburg

Fix warning about variable reassignment before use

parent 7d88b861
......@@ -946,8 +946,6 @@ bool vtkLabeledContourPolyDataItem::Private::SetViewInfo(vtkContextScene* contex
return false;
}
vtkMatrix4x4 *mat = cam->GetModelViewTransformMatrix();
this->CameraRight.Set(1.0, 0.0, 0.0);
this->CameraUp.Set(0.0, 1.0, 0.0);
this->CameraForward.Set(0.0, 0.0, -1.0);
......@@ -969,7 +967,7 @@ bool vtkLabeledContourPolyDataItem::Private::SetViewInfo(vtkContextScene* contex
// Get the mvp (mcdc) matrix
double mvp[16];
mat = cam->GetCompositeProjectionTransformMatrix(aspect, -1, 1);
vtkMatrix4x4 *mat = cam->GetCompositeProjectionTransformMatrix(aspect, -1, 1);
vtkMatrix4x4::DeepCopy(mvp, mat);
vtkTransform2D* xform2D = transform->GetTransform();
......
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