Skip to content

Commit

Permalink
Merge pull request #1126 from VictorLamoine/plotter
Browse files Browse the repository at this point in the history
Fix crash when displaying equal data
  • Loading branch information
taketwo committed Jan 29, 2015
2 parents 78ebe06 + d19e6ae commit 410edbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions visualization/src/pcl_plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ pcl::visualization::PCLPlotter::computeHistogram (

//finding the size of each bins
double size = (max - min) / nbins;
if (size == 0) size = 1.0;

//fill x values of each bins by bin center
for (int i = 0; i < nbins; i++)
Expand Down

0 comments on commit 410edbd

Please sign in to comment.