partial fix for repeated algorithm registration (patch #2101 by Stephan Reuter)

pull/2/head
Vadim Pisarevsky 13 years ago
parent d56b771963
commit 562838e0b5
  1. 1
      modules/core/src/algorithm.cpp

@ -321,6 +321,7 @@ AlgorithmInfo::AlgorithmInfo(const string& _name, Algorithm::Constructor create)
{
data = new AlgorithmInfoData;
data->_name = _name;
if (!alglist().find(_name, create))
alglist().add(_name, create);
}

Loading…
Cancel
Save