mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-07 04:49:38 +01:00
This commit is contained in:
parent
28efa65e0c
commit
03df70ce8a
@ -415,7 +415,7 @@ static std::vector<SCRIPT_ITEM> UniscribeItemizeString(UniscribeParagraphLayoutF
|
||||
UniscribeRun run = *i_run;
|
||||
|
||||
/* Partial run after line break (either start or end)? Reshape run to get the first/last glyphs right. */
|
||||
if (i_run == last_run - 1 && remaining_offset < (last_run - 1)->len) {
|
||||
if (i_run == last_run - 1 && remaining_offset <= (last_run - 1)->len) {
|
||||
run.len = remaining_offset - 1;
|
||||
|
||||
if (!UniscribeShapeRun(this->text_buffer, run)) return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user