(svn r25481) -Fix [FS#5620]: when the font size and colour change directly after eachother in a string, the latter isn't taken into account

This commit is contained in:
rubidium 2013-06-27 15:22:19 +00:00
parent 0150ab1bb2
commit bd2f4b9a24
1 changed files with 3 additions and 1 deletions

View File

@ -420,8 +420,10 @@ Layouter::Layouter(const char *str, int maxw, TextColour colour, FontSize fontsi
if (!this->fonts.Contains(buff - this->buffer)) {
this->fonts.Insert(buff - this->buffer, f);
f = new Font(fontsize, cur_colour);
} else {
delete f;
}
f = new Font(fontsize, cur_colour);
}
/* Better safe than sorry. */