Browse Source

Fixes an issue where pseudo class properties were not properly updated on some configurations, see #30. Thanks @barotto.

Michael Ragazzon 6 năm trước cách đây
mục cha
commit
363c97d50f
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      Include/Rocket/Core/Types.h
  2. 1 1
      Source/Core/ElementHandle.cpp

+ 1 - 1
Include/Rocket/Core/Types.h

@@ -109,7 +109,7 @@ typedef std::unordered_set< String > PropertyNameList;
 typedef std::unordered_set< String > AttributeNameList;
 typedef Dictionary ElementAttributes;
 typedef std::vector< ElementAnimation > ElementAnimationList;
-typedef std::unordered_map< String, Property > PropertyMap;
+typedef std::map< String, Property > PropertyMap;
 
 // Reference types
 typedef std::shared_ptr< Transform > TransformRef;

+ 1 - 1
Source/Core/ElementHandle.cpp

@@ -49,7 +49,7 @@ ElementHandle::~ElementHandle()
 {
 }
 
-void ElementHandle::OnAttributeChange(const PropertyNameList& changed_attributes)
+void ElementHandle::OnAttributeChange(const AttributeNameList& changed_attributes)
 {
 	Element::OnAttributeChange(changed_attributes);