Color table. Fixed bug

This commit is contained in:
Bjørn Erik Jensen 2017-10-06 22:03:13 +02:00
parent 5d672356d2
commit ca56454acb

View File

@ -95,7 +95,7 @@ cvf::Color3fArray ColorTable::color3fArray() const
{
cvf::Color3fArray col3fArr;
col3fArr.resize(m_colors.size());
col3fArr.reserve(m_colors.size());
for (const auto& c : m_colors)
{
col3fArr.add(cvf::Color3f(c));