Merge pull request #11674 from csukuangfj:fix-11673

This commit is contained in:
Alexander Alekhin 2018-06-03 11:00:10 +00:00
commit 0ddc49c313

View File

@ -528,7 +528,7 @@ void cv::viz::WText3D::setText(const String &text)
cv::String cv::viz::WText3D::getText() const
{
vtkFollower *actor = vtkFollower::SafeDownCast(WidgetAccessor::getProp(*this));
vtkActor *actor = vtkActor::SafeDownCast(WidgetAccessor::getProp(*this));
CV_Assert("This widget does not support text." && actor);
vtkPolyDataMapper *mapper = vtkPolyDataMapper::SafeDownCast(actor->GetMapper());