Skip to content

Commit 99662b0

Browse files
committed
Merge pull request PointCloudLibrary#1205 from fran6co/patch-12
Fixes for VTK 6.2.0
2 parents d0af48b + adbdcc8 commit 99662b0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

visualization/include/pcl/visualization/vtk/vtkRenderWindowInteractorFix.mm

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
#include <vtkCocoaRenderWindowInteractor.h>
4242
#include <vtkObjectFactory.h>
4343

44+
#if ((VTK_MAJOR_VERSION < 6) || ((VTK_MAJOR_VERSION == 6) && (VTK_MINOR_VERSION < 2)))
45+
4446
//----------------------------------------------------------------------------
4547
@interface vtkCocoaServerFix : NSObject
4648
{
@@ -213,4 +215,10 @@ - (void)windowWillClose:(NSNotification*)aNotification
213215
{
214216
return (vtkCocoaRenderWindowInteractorFix::New ());
215217
}
216-
218+
#else
219+
//----------------------------------------------------------------------------
220+
vtkRenderWindowInteractor* vtkRenderWindowInteractorFixNew ()
221+
{
222+
return (vtkCocoaRenderWindowInteractor::New ());
223+
}
224+
#endif

0 commit comments

Comments
 (0)