(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

pull/155/head
rubidium 11 years ago
parent ac583fc787
commit 6fc07559ed

@ -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. */

Loading…
Cancel
Save