mirror of https://github.com/kivy/kivy.git
uix: label. Make sure texture exists before binding
This commit is contained in:
parent
e9ddd4dea9
commit
af1c84d6ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue