diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 1b6e485a..193f2099 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -726,6 +726,7 @@ static void showErrorPage_DocumentWidget_(iDocumentWidget *d, enum iGmStatusCode | |||
726 | } | 726 | } |
727 | } | 727 | } |
728 | setSiteBannerEnabled_GmDocument(d->doc, useBanner); | 728 | setSiteBannerEnabled_GmDocument(d->doc, useBanner); |
729 | setFormat_GmDocument(d->doc, gemini_GmDocumentFormat); | ||
729 | setSource_DocumentWidget_(d, src); | 730 | setSource_DocumentWidget_(d, src); |
730 | updateTheme_DocumentWidget_(d); | 731 | updateTheme_DocumentWidget_(d); |
731 | init_Anim(&d->scrollY, 0); | 732 | init_Anim(&d->scrollY, 0); |
@@ -838,6 +839,7 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d, const iGmResponse | |||
838 | deinit_String(&str); | 839 | deinit_String(&str); |
839 | return; | 840 | return; |
840 | } | 841 | } |
842 | setFormat_GmDocument(d->doc, docFormat); | ||
841 | /* Convert the source to UTF-8 if needed. */ | 843 | /* Convert the source to UTF-8 if needed. */ |
842 | if (!equalCase_Rangecc(charset, "utf-8")) { | 844 | if (!equalCase_Rangecc(charset, "utf-8")) { |
843 | set_String(&str, | 845 | set_String(&str, |