1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

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

This commit is contained in:
Vadim Pisarevsky
2012-07-01 21:14:16 +00:00
parent d56b771963
commit 562838e0b5
+2 -1
View File
@@ -321,7 +321,8 @@ AlgorithmInfo::AlgorithmInfo(const string& _name, Algorithm::Constructor create)
{
data = new AlgorithmInfoData;
data->_name = _name;
alglist().add(_name, create);
if (!alglist().find(_name, create))
alglist().add(_name, create);
}
AlgorithmInfo::~AlgorithmInfo()