Skip to content

Commit

Permalink
Don't attempt to render NULL strings.
Browse files Browse the repository at this point in the history
Change-Id: I54a664d7c4b0dc8824a099b035e26872f0b6fa7f
  • Loading branch information
David C. Lonie committed Oct 15, 2014
1 parent 1edb598 commit 5d32344
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rendering/GL2PS/vtkGL2PSUtilities.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ float vtkGL2PSUtilities::LineWidthFactor = 5.f / 7.f;
void vtkGL2PSUtilities::DrawString(const char *str,
vtkTextProperty *tprop, double pos[])
{
if (!str)
{
return;
}

vtkTextRenderer *tren(vtkTextRenderer::GetInstance());
if (tren == NULL)
{
Expand Down

0 comments on commit 5d32344

Please sign in to comment.