Merge pull request #5942 from akarsakov:fix_memcpy_empty_vector

pull/5946/head
Alexander Alekhin 9 years ago
commit 8a803865cf
  1. 2
      modules/calib3d/src/solvepnp.cpp

@ -197,7 +197,7 @@ namespace cv
}
resultsMutex.lock();
if ( (localInliers.size() > inliers.size()) || (localInliers.size() == inliers.size() && curIndex > bestIndex))
if ( (localInliers.size() > inliers.size()) || (localInliers.size() == inliers.size() && inliers.size() > 0 && curIndex > bestIndex))
{
inliers.clear();
inliers.resize(localInliers.size());

Loading…
Cancel
Save