summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/formats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fe-common/core/formats.c b/src/fe-common/core/formats.c
index 02e6c453..a953a1a7 100644
--- a/src/fe-common/core/formats.c
+++ b/src/fe-common/core/formats.c
@@ -948,8 +948,7 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text)
int fgcolor, bgcolor;
int flags;
- theme = dest->window != NULL && dest->window->theme != NULL ?
- dest->window->theme : current_theme;
+ theme = window_get_theme(dest->window);
dup = str = g_strdup(text);