Skip to content

Commit 0df0947

Browse files
committed
Improve code style
Refer to: cocos2d/cocos2d-x#20743
1 parent 3bee678 commit 0df0947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ui/UIRichText.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ void MyXMLVisitor::startElement(void* /*ctx*/, const char* elementName, const ch
689689
auto result = tagBehavior.handleVisitEnter(tagAttrValueMap);
690690
ValueMap& attrValueMap = result.first;
691691
RichElement* richElement = result.second;
692-
if (!attrValueMap.empty())
692+
if (tagBehavior.isFontElement)
693693
{
694694
Attributes attributes;
695695

0 commit comments

Comments
 (0)