diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-12 14:10:55 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-12 14:10:55 +0300 |
commit | 06882d2014f56297295e32d353781db34078e8fe (patch) | |
tree | 54221ecaa42c3440ba1ac20216b040eb301951b6 /src/gmdocument.c | |
parent | 9f7a9058d3593d09a8fad9cd42b59f8a15873837 (diff) | |
parent | be76ad93ea6218f6f3b019a07ddc074e84d86969 (diff) |
Merge branch 'dev' into work/typesetter
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index da99fd0d..4fc0dd5e 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -726,7 +726,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { | |||
726 | const int wrapAvail = d->size.x - run.bounds.pos.x - rightMargin * gap_Text; | 726 | const int wrapAvail = d->size.x - run.bounds.pos.x - rightMargin * gap_Text; |
727 | const int avail = isWordWrapped ? wrapAvail : 0; | 727 | const int avail = isWordWrapped ? wrapAvail : 0; |
728 | const char *contPos; | 728 | const char *contPos; |
729 | const iInt2 dims = tryAdvance_Text(run.font, runLine, avail, &contPos); | 729 | const iInt2 dims = tryAdvance_Text(run.font, runLine, avail, &contPos); |
730 | iChangeFlags(run.flags, wide_GmRunFlag, (isPreformat && dims.x > d->size.x)); | 730 | iChangeFlags(run.flags, wide_GmRunFlag, (isPreformat && dims.x > d->size.x)); |
731 | run.bounds.size.x = iMax(wrapAvail, dims.x); /* Extends to the right edge for selection. */ | 731 | run.bounds.size.x = iMax(wrapAvail, dims.x); /* Extends to the right edge for selection. */ |
732 | run.bounds.size.y = dims.y; | 732 | run.bounds.size.y = dims.y; |