Fix broken index computation

This commit is contained in:
Emma Broman
2026-03-09 11:56:08 +01:00
parent ebb34f849e
commit 73b66fda5a

View File

@@ -1344,7 +1344,7 @@ void DataViewer::updateGlyphRenderData() {
GlyphRenderData::Item renderItem;
renderItem.index = index;
renderItem.position = *item.position;
renderItem.component = item.indexInSystem;
renderItem.component = static_cast<size_t>(item.indexInSystem + 1);
size_t nVariables = _colorMappingView->colorMapperVariables().size();