Browse files

Using a TARDIS to travel back in time I managed to prevent BasicStati…

…cText::draw() from exploding if no image was set.
  • Loading branch information...
1 parent 1f0b99e commit 93803c700c86bbd1e259a9f0ffc4c891027ca806 Quit committed Aug 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Frames/Text.hpp
View
2 Frames/Text.hpp
@@ -131,7 +131,7 @@ namespace GosuEx {
}
virtual void draw() {
- if (!this->shouldDraw())
+ if (!this->shouldDraw() || !pimpl.img)
return;
pimpl.img->draw(this->dispX(), this->dispY(), this->z(), this->factorX(), this->factorY(), this->textColor());
T::draw();

0 comments on commit 93803c7

Please sign in to comment.