mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 22:00:25 +08:00
Merge pull request #3947 from tcavallari:patch-1
This commit is contained in:
commit
dce0405c4d
@ -85,7 +85,7 @@ void cv::viz::Viz3d::VizImpl::TimerCallback::Execute(vtkObject* caller, unsigned
|
|||||||
|
|
||||||
void cv::viz::Viz3d::VizImpl::ExitCallback::Execute(vtkObject*, unsigned long event_id, void*)
|
void cv::viz::Viz3d::VizImpl::ExitCallback::Execute(vtkObject*, unsigned long event_id, void*)
|
||||||
{
|
{
|
||||||
if (event_id == vtkCommand::ExitEvent)
|
if (event_id == vtkCommand::ExitEvent && viz->interactor_)
|
||||||
{
|
{
|
||||||
viz->interactor_->TerminateApp();
|
viz->interactor_->TerminateApp();
|
||||||
viz->interactor_ = 0;
|
viz->interactor_ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user