fix(progressbar): Pass label to builder

Ref #224
This commit is contained in:
Michael Carlberg 2016-12-05 05:04:42 +01:00
parent 7d1092db04
commit 1a48f825d1

View File

@ -73,7 +73,7 @@ namespace drawtypes {
if (i % m_colorstep == 0 && color < m_colors.size()) { if (i % m_colorstep == 0 && color < m_colors.size()) {
m_fill->m_foreground = m_colors[color++]; m_fill->m_foreground = m_colors[color++];
} }
m_builder->node(m_fill->get()); m_builder->node(m_fill);
} }
} else { } else {
size_t color = math_util::percentage_to_value<size_t>(perc, m_colors.size() - 1); size_t color = math_util::percentage_to_value<size_t>(perc, m_colors.size() - 1);