uix: label. Make sure texture exists before binding

This commit is contained in:
qua-non 2013-04-24 01:56:28 +05:30
parent e9ddd4dea9
commit af1c84d6ac
1 changed files with 2 additions and 1 deletions

View File

@ -191,7 +191,8 @@ class Label(Widget):
text, '[/color]'))
self._label.refresh()
# force the rendering to get the references
self._label.texture.bind()
if self._label.texture:
self._label.texture.bind()
self._label.text = text
self.refs = self._label.refs
self.anchors = self._label.anchors