Skip to content

Commit

Permalink
Merge pull request #1436 from SergioRAgostinho/mac_viz_close
Browse files Browse the repository at this point in the history
Fix to #1390
  • Loading branch information
jspricke committed Nov 19, 2015
2 parents 0a60255 + 9d49766 commit 7d8e113
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,14 @@ void
pcl::visualization::PCLVisualizer::spinOnce (int time, bool force_redraw)
{
resetStoppedFlag ();
#if (defined (__APPLE__)\
&& ( (VTK_MAJOR_VERSION > 6) || ( (VTK_MAJOR_VERSION == 6) && (VTK_MINOR_VERSION >= 1))))
if (!win_->IsDrawable ())
{
close ();
return;
}
#endif

if (time <= 0)
time = 1;
Expand Down

0 comments on commit 7d8e113

Please sign in to comment.