mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
Display large entries in journal correctly
This commit is contained in:
parent
6ef5d1408f
commit
0177fe6602
@ -435,9 +435,15 @@ struct TypesetBookImpl::Typesetter : BookTypesetter
|
||||
}
|
||||
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
|
||||
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
|
||||
int splitPos = curPageStop;
|
||||
|
Loading…
Reference in New Issue
Block a user