Browse Source

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

Michael Ragazzon 6 years ago
parent
commit
363c97d50f
2 changed files with 2 additions and 2 deletions
  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 std::unordered_set< String > AttributeNameList;
 typedef Dictionary ElementAttributes;
 typedef Dictionary ElementAttributes;
 typedef std::vector< ElementAnimation > ElementAnimationList;
 typedef std::vector< ElementAnimation > ElementAnimationList;
-typedef std::unordered_map< String, Property > PropertyMap;
+typedef std::map< String, Property > PropertyMap;
 
 
 // Reference types
 // Reference types
 typedef std::shared_ptr< Transform > TransformRef;
 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);
 	Element::OnAttributeChange(changed_attributes);