Browse Source

Remove unnecessary check in ElementTextDefault

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

+ 0 - 4
Source/Core/ElementTextDefault.cpp

@@ -376,10 +376,6 @@ bool ElementTextDefault::UpdateFontConfiguration()
 
 	font_dirty = false;
 
-	const Element* parent = GetParentNode();
-	if (!parent)
-		return false;
-
 	static const FontEffectList empty_font_effects;
 
 	// Fetch the font-effect for this text element