diff options
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 313fd40a..378926e7 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -421,7 +421,8 @@ static void doLayout_GmDocument_(iGmDocument *d) { | |||
421 | iGmPreMeta meta = { .bounds = line }; | 421 | iGmPreMeta meta = { .bounds = line }; |
422 | meta.pixelRect.size = measurePreformattedBlock_GmDocument_( | 422 | meta.pixelRect.size = measurePreformattedBlock_GmDocument_( |
423 | d, line.start, preFont, &meta.contents, &meta.bounds.end); | 423 | d, line.start, preFont, &meta.contents, &meta.bounds.end); |
424 | if (meta.pixelRect.size.x > d->size.x - indents[preformatted_GmLineType] * gap_Text) { | 424 | if (meta.pixelRect.size.x > |
425 | d->size.x - (enableIndents ? indents[preformatted_GmLineType] : 0) * gap_Text) { | ||
425 | preFont = preformattedSmall_FontId; | 426 | preFont = preformattedSmall_FontId; |
426 | meta.pixelRect.size = measureRange_Text(preFont, meta.contents); | 427 | meta.pixelRect.size = measureRange_Text(preFont, meta.contents); |
427 | } | 428 | } |