File tree 2 files changed +0
-7
lines changed
2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ IMPLEMENT_CLASS_GUI_INFO(TextBMFont)
36
36
37
37
TextBMFont::TextBMFont ():
38
38
_labelBMFontRenderer (nullptr ),
39
- _fntFileHasInit (false ),
40
39
_fntFileName (" " ),
41
40
_stringValue (" " ),
42
41
_labelBMFontRendererAdaptDirty (true )
@@ -89,7 +88,6 @@ void TextBMFont::setFntFile(const std::string& fileName)
89
88
_fntFileName = fileName;
90
89
_labelBMFontRenderer->setBMFontFilePath (fileName);
91
90
92
- _fntFileHasInit = true ;
93
91
updateContentSizeWithTextureSize (_labelBMFontRenderer->getContentSize ());
94
92
_labelBMFontRendererAdaptDirty = true ;
95
93
}
@@ -102,10 +100,6 @@ void TextBMFont::setString(const std::string& value)
102
100
}
103
101
_stringValue = value;
104
102
_labelBMFontRenderer->setString (value);
105
- if (!_fntFileHasInit)
106
- {
107
- return ;
108
- }
109
103
updateContentSizeWithTextureSize (_labelBMFontRenderer->getContentSize ());
110
104
_labelBMFontRendererAdaptDirty = true ;
111
105
}
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ class CC_GUI_DLL TextBMFont : public Widget
112
112
virtual void adaptRenderers () override ;
113
113
protected:
114
114
Label* _labelBMFontRenderer;
115
- bool _fntFileHasInit;
116
115
std::string _fntFileName;
117
116
std::string _stringValue;
118
117
bool _labelBMFontRendererAdaptDirty;
You can’t perform that action at this time.
0 commit comments