From 4b7c9ef54c48c471e204e0dcd138fedd60ed6062 Mon Sep 17 00:00:00 2001 From: Fulvio Scapin Date: Sun, 4 Sep 2022 23:36:17 +0200 Subject: [PATCH] [view_curses] Fix for fg colour and reverse attribute for separator bars Elements of type VC_GRAPHIC used as column separators, when used along with background coloured bars to express numeric column values, maintain alternate-line reversing of colours when inside the bar range and take the foreground color of the last coloured bar on the line even though are not placed in the coloured range of characters. This commit fixes this. --- src/view_curses.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view_curses.cc b/src/view_curses.cc index 78a61bc4..2e4664c9 100644 --- a/src/view_curses.cc +++ b/src/view_curses.cc @@ -324,6 +324,7 @@ view_curses::mvwattrline(WINDOW* window, if (iter->sa_type == &VC_GRAPHIC) { graphic = iter->sa_value.get(); + attrs = text_attrs{}; } else if (iter->sa_type == &VC_STYLE) { attrs = iter->sa_value.get(); } else if (iter->sa_type == &SA_LEVEL) {