Fixed bug where file display fields would be generated needlessly.

This commit is contained in:
WrinklyNinja
2014-01-27 23:51:00 +00:00
parent db83bca8eb
commit 8e671b6376
+1 -1
View File
@@ -761,7 +761,7 @@ namespace YAML {
if (rhs.IsConditional())
out << Key << "condition" << Value << rhs.Condition();
if (!rhs.DisplayName().empty())
if (rhs.DisplayName() != rhs.Name())
out << Key << "display" << Value << rhs.DisplayName();
out << EndMap;