Skip to content

Commit

Permalink
Fix to #1390
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRAgostinho committed Nov 19, 2015
1 parent 18b1459 commit 9d49766
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 9d49766

Please sign in to comment.