Skip to content

Commit

Permalink
fix #1146 wrap fg/bg color with ?: null protection.
Browse files Browse the repository at this point in the history
  • Loading branch information
karlkleinpaste committed May 14, 2024
1 parent 1f81fe9 commit 2df1f16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/sword.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,8 @@ void main_flush_widgets_content(void)
GString *blank_html_content = g_string_new(NULL);
g_string_printf(blank_html_content,
"<html><head></head><body bgcolor=\"%s\" text=\"%s\"> </body></html>",
settings.bible_bg_color, settings.bible_text_color);
(settings.bible_bg_color ? settings.bible_bg_color : "0x000000"),
(settings.bible_text_color ? settings.bible_text_color : "0xFFFFFF"));

if (gtk_widget_get_realized(GTK_WIDGET(widgets.html_text)))
HtmlOutput(blank_html_content->str, widgets.html_text, NULL, NULL);
Expand Down

0 comments on commit 2df1f16

Please sign in to comment.