mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Merge pull request #1416 from akortunov/guifixes
Display large journal entries correctly
This commit is contained in:
commit
30665b743d
1 changed files with 7 additions and 1 deletions
|
@ -435,9 +435,15 @@ struct TypesetBookImpl::Typesetter : BookTypesetter
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// The section won't completely fit on the current page. Finish the current page and start a new one.
|
||||||
|
mBook->mPages.push_back (Page (curPageStart, curPageStop));
|
||||||
|
|
||||||
|
curPageStart = i->mRect.top;
|
||||||
|
curPageStop = i->mRect.bottom;
|
||||||
|
|
||||||
//split section
|
//split section
|
||||||
int sectionHeightLeft = sectionHeight;
|
int sectionHeightLeft = sectionHeight;
|
||||||
while (sectionHeightLeft > mPageHeight)
|
while (sectionHeightLeft >= mPageHeight)
|
||||||
{
|
{
|
||||||
// Adjust to the top of the first line that does not fit on the current page anymore
|
// Adjust to the top of the first line that does not fit on the current page anymore
|
||||||
int splitPos = curPageStop;
|
int splitPos = curPageStop;
|
||||||
|
|
Loading…
Reference in a new issue