mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
GRAPHICS: MACGUI: inherit paragraphEnd when we adding new line in mactext
This commit is contained in:
parent
12232c992a
commit
51698610d2
@ -1933,6 +1933,9 @@ void MacText::addNewLine(int *row, int *col) {
|
||||
MacFontRun newchunk = line->chunks[ch];
|
||||
MacTextLine newline;
|
||||
|
||||
// we have to inherit paragraphEnd from the origin line
|
||||
newline.paragraphEnd = line->paragraphEnd;
|
||||
|
||||
newchunk.text = line->chunks[ch].text.substr(pos);
|
||||
line->chunks[ch].text = line->chunks[ch].text.substr(0, pos);
|
||||
line->paragraphEnd = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user