From ec42d872043f07ed194383703ded05ed6c0a5f62 Mon Sep 17 00:00:00 2001 From: Kuang Fangjun Date: Sat, 2 Jun 2018 19:16:56 +0800 Subject: [PATCH] fix #11673. --- modules/viz/src/shapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/viz/src/shapes.cpp b/modules/viz/src/shapes.cpp index 1dfa7c38e1..30fde1cc5c 100644 --- a/modules/viz/src/shapes.cpp +++ b/modules/viz/src/shapes.cpp @@ -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());