Permalink
Browse files

Fixed minor bug with empty text items.

  • Loading branch information...
1 parent 551dd3b commit ae7cbd2541aaf428e91ac50e3c50674803ba25dd @Fiona committed May 28, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 engine/gfx/opengl/engine.py
@@ -445,6 +445,9 @@ def __init__(self, font, x, y, alignment, text, antialias = True):
def draw(self):
""" Welp """
+ if self.image is None:
+ return
+
glPushMatrix()
#get actual place to draw

0 comments on commit ae7cbd2

Please sign in to comment.