Fix crash if text containing \n is printed at nonzero x

This commit is contained in:
Ilari Liusvaara 2016-09-18 23:00:13 +03:00
parent 5544b9ba12
commit c5d441c6b0

View file

@ -897,7 +897,7 @@ void font::for_each_glyph(const std::string& str, uint32_t alignx, bool xdbl, bo
layout_x = (layout_x + TABSTOPS) / TABSTOPS * TABSTOPS;
break;
case 10:
layout_x = 0;
layout_x = offset;
layout_y = layout_y + 16;
break;
default: