Browse Source

Dirty font effects when the 'font-effect' property is changed. Fixes #98.

Michael Ragazzon 5 years ago
parent
commit
4adce4300b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/Core/ElementTextDefault.cpp

+ 5 - 0
Source/Core/ElementTextDefault.cpp

@@ -326,6 +326,11 @@ void ElementTextDefault::OnPropertyChange(const PropertyIdSet& changed_propertie
 		font_effects_dirty = true;
 		font_effects_dirty = true;
 	}
 	}
 
 
+	if (changed_properties.Contains(PropertyId::FontEffect))
+	{
+		font_effects_dirty = true;
+	}
+
 	if (changed_properties.Contains(PropertyId::TextDecoration))
 	if (changed_properties.Contains(PropertyId::TextDecoration))
 	{
 	{
 		decoration_property = computed.text_decoration;
 		decoration_property = computed.text_decoration;