[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.
This commit is contained in:
Fulvio Scapin 2022-09-04 23:36:17 +02:00
parent 66ec8e553e
commit 4b7c9ef54c

View File

@ -324,6 +324,7 @@ view_curses::mvwattrline(WINDOW* window,
if (iter->sa_type == &VC_GRAPHIC) {
graphic = iter->sa_value.get<int64_t>();
attrs = text_attrs{};
} else if (iter->sa_type == &VC_STYLE) {
attrs = iter->sa_value.get<text_attrs>();
} else if (iter->sa_type == &SA_LEVEL) {