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 0ac0de8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions visualization/src/interactor_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,16 +454,9 @@ pcl::visualization::PCLVisualizerInteractorStyle::OnChar ()
case 'u': case 'U':
case 'q': case 'Q':
case 'x': case 'X':
{
break;
}
// R have a special !CTRL case
// S have special !ALT and !CTRL case
case 'r': case 'R':
case 's': case 'S':
{
if (!keymod)
Superclass::OnChar ();
break;
}
default:
Expand Down

0 comments on commit 0ac0de8

Please sign in to comment.