diff --git a/source/src/rendertext.cpp b/source/src/rendertext.cpp index 51a20d64..307b5f91 100644 --- a/source/src/rendertext.cpp +++ b/source/src/rendertext.cpp @@ -198,7 +198,7 @@ void draw_text(const char *str, int left, int top) switch(c) { case '\t': - if(columns) x = left + (*columns)[col++]; + if(columns && collength()) x = left + (*columns)[col++]; else x = (x-left+PIXELTAB)/PIXELTAB*PIXELTAB+left; continue;