Skip to content

Commit

Permalink
Fix PointCloudLibrary#740: Segmentation fault when "r" is pressed
Browse files Browse the repository at this point in the history
Segmentation fault when "r" is pressed in PCLVisualizer.
The previous pull request PointCloudLibrary#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.
  • Loading branch information
xiangxw committed Jun 12, 2014
1 parent dc0f358 commit 62c9152
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions visualization/src/interactor_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 62c9152

Please sign in to comment.