Commit 562838e0 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

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

parent d56b7719
...@@ -321,6 +321,7 @@ AlgorithmInfo::AlgorithmInfo(const string& _name, Algorithm::Constructor create) ...@@ -321,6 +321,7 @@ AlgorithmInfo::AlgorithmInfo(const string& _name, Algorithm::Constructor create)
{ {
data = new AlgorithmInfoData; data = new AlgorithmInfoData;
data->_name = _name; data->_name = _name;
if (!alglist().find(_name, create))
alglist().add(_name, create); alglist().add(_name, create);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment