[fbreader] Flush text buffer when adding HSpace or LineBreak
This commit is contained in:
parent
764af720e4
commit
ae8986bb4f
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue