[fbreader] Flush text buffer when adding HSpace or LineBreak

This commit is contained in:
Slava Monich 2015-08-05 19:10:29 +03:00
parent 764af720e4
commit ae8986bb4f

View file

@ -105,12 +105,14 @@ void BookReader::addControl(FBTextKind kind, bool start) {
void BookReader::addFixedHSpace(unsigned char length) {
if (myTextParagraphExists) {
flushTextBufferToParagraph();
myCurrentTextModel->addFixedHSpace(length);
}
}
void BookReader::addLineBreak() {
if (myTextParagraphExists) {
flushTextBufferToParagraph();
myCurrentTextModel->addLineBreak();
}
}