diff options
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 5 |
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. */ |