Skip to content

Commit

Permalink
Merge pull request #1776 from MarcoFalke/Mf1612-visCamFileLoop
Browse files Browse the repository at this point in the history
visualization: Return when camera file is not open
  • Loading branch information
taketwo authored Dec 13, 2016
2 parents d265c72 + fae9df9 commit 7583840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions visualization/src/interactor_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ pcl::visualization::PCLVisualizerInteractorStyle::loadCameraParameters (const st
bool ret;

fs.open (file.c_str ());
if (!fs.is_open ())
{
return (false);
}
while (!fs.eof ())
{
getline (fs, line);
Expand Down

0 comments on commit 7583840

Please sign in to comment.