Skip to content
Snippets Groups Projects
Commit f439c287 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[m.i788] Reapply initialization settings when reading 'SelectionProperty' (#788) (Closes #788)

Merging branch 'm.i788'  into 'main'.

See merge request !2104
parents 09770240 0ccf48e8
No related branches found
No related tags found
1 merge request!2104Reapply initialization settings when reading 'SelectionProperty' (#788)
Pipeline #119034 passed
...@@ -162,6 +162,8 @@ public: ...@@ -162,6 +162,8 @@ public:
const uint typeIndex = XML::readUIntAttribute(r, XML::Attrib::type); const uint typeIndex = XML::readUIntAttribute(r, XML::Attrib::type);
const auto type = static_cast<typename Catalog::Type>(typeIndex); const auto type = static_cast<typename Catalog::Type>(typeIndex);
auto* p = Catalog::create(type, argsForCreation...); auto* p = Catalog::create(type, argsForCreation...);
if (m_initializer)
m_initializer(p, m_p.get());
if (p) if (p)
p->readFrom(r); p->readFrom(r);
m_p.reset(p); m_p.reset(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment