1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 21:49:55 +00:00

Check for text size

This commit is contained in:
MiroslavR 2014-09-22 23:17:44 +02:00
parent 608e1518a5
commit 22c71cec18

View file

@ -202,10 +202,8 @@ namespace MWGui
// hack: prevent newlines at the end of the book possibly creating unnecessary pages
if (event == BookTextParser::Event_EOF)
{
while (plainText[plainText.size()-1] == '\n')
{
while (plainText.size() && plainText[plainText.size()-1] == '\n')
plainText.erase(plainText.end()-1);
}
}
#endif