Explorar o código

Add missing SetAttributes call when cloning Element

Dakror %!s(int64=4) %!d(string=hai) anos
pai
achega
947223b445
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Source/Core/Element.cpp

+ 3 - 0
Source/Core/Element.cpp

@@ -257,6 +257,9 @@ ElementPtr Element::Clone() const
 
 	if (clone != nullptr)
 	{
+		// Set the attributes manually in case the instancer does not set them.
+		clone->SetAttributes(attributes);
+
 		String inner_rml;
 		GetInnerRML(inner_rml);