summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-18 14:23:12 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-18 14:23:12 +0300
commit8ed2faadc4ca2497fc3b2e9d2eae6d40921de918 (patch)
tree7153efb6d6fadba0bd213cd72b57e95a41861776 /src/gmdocument.c
parent9aa25106b76b0e9ab77fe405c9a0039efd67f016 (diff)
parent2d6d6cd513b8de36971545834212f927fa4e27dc (diff)
Merge branch 'master' of skyjake.fi:skyjake/lagrange
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 535a873e..a6fc39c5 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -413,8 +413,9 @@ static void doLayout_GmDocument_(iGmDocument *d) {
413 pos.y += required - delta; 413 pos.y += required - delta;
414 } 414 }
415 } 415 }
416 /* Save the document title. */ 416 /* Save the document title (first high-level heading). */
417 if (type == heading1_GmLineType && isEmpty_String(&d->title)) { 417 if ((type == heading1_GmLineType || type == heading2_GmLineType) &&
418 isEmpty_String(&d->title)) {
418 setRange_String(&d->title, line); 419 setRange_String(&d->title, line);
419 } 420 }
420 /* List bullet. */ 421 /* List bullet. */