[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.
pull/1042/head
Fulvio Scapin 2 years ago
parent 66ec8e553e
commit 4b7c9ef54c

@ -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) {

Loading…
Cancel
Save