Use int as category value type

This commit is contained in:
Magne Sjaastad 2017-02-15 10:38:42 +01:00
parent e8c5a43e1a
commit f5db37fcf7
2 changed files with 2 additions and 2 deletions

View File

@ -639,7 +639,7 @@ void RimLegendConfig::setCategoryColors(const std::vector<cvf::Color3ub>& catego
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimLegendConfig::categoryNameFromCategoryValue(size_t categoryValue) const
QString RimLegendConfig::categoryNameFromCategoryValue(int categoryValue) const
{
if (m_categoryNames.size() > 0)
{

View File

@ -110,7 +110,7 @@ public:
void setNamedCategoriesInverse(const std::vector<QString>& categoryNames);
void setNamedCategories(const std::vector<QString>& categoryNames);
void setCategoryColors(const std::vector<cvf::Color3ub>& categoryColors);
QString categoryNameFromCategoryValue(size_t categoryValue) const;
QString categoryNameFromCategoryValue(int categoryValue) const;
void setTitle(const cvf::String& title);