From 62c9152c875e5930274673b7e6dd2249235d113e Mon Sep 17 00:00:00 2001 From: xiangxw Date: Thu, 12 Jun 2014 11:41:09 +0800 Subject: [PATCH] Fix #740: Segmentation fault when "r" is pressed Segmentation fault when "r" is pressed in PCLVisualizer. The previous pull request #703 does not handle the "r" keyboard event correctly and pass the event to vtkInteractorStyleRubberBandPick, which enables rubber-band selection mode when 'r' is pressed. --- visualization/src/interactor_style.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/visualization/src/interactor_style.cpp b/visualization/src/interactor_style.cpp index 6afb5476b3a..5ae27d08883 100644 --- a/visualization/src/interactor_style.cpp +++ b/visualization/src/interactor_style.cpp @@ -454,12 +454,11 @@ pcl::visualization::PCLVisualizerInteractorStyle::OnChar () case 'u': case 'U': case 'q': case 'Q': case 'x': case 'X': + case 'r': case 'R': { break; } - // R have a special !CTRL case - // S have special !ALT and !CTRL case - case 'r': case 'R': + // S have special !ALT case case 's': case 'S': { if (!keymod)