Skip to content

Commit c734071

Browse files
committed
Merge pull request #1421 from cdcseacave:master
2 parents 188ca4a + 4095ef1 commit c734071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ccalib/src/multicalib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void MultiCameraCalibration::loadImages()
141141
for (int i = 1; i < (int)file_list.size(); ++i)
142142
{
143143
int cameraVertex, timestamp;
144-
std::string filename = file_list[i].substr(0, file_list[i].find('.'));
144+
std::string filename = file_list[i].substr(0, file_list[i].rfind('.'));
145145
size_t spritPosition1 = filename.rfind('/');
146146
size_t spritPosition2 = filename.rfind('\\');
147147
if (spritPosition1!=std::string::npos)

0 commit comments

Comments
 (0)