diff --git a/MeshLib/PropertyVector.h b/MeshLib/PropertyVector.h index e0558b44b330a56b6f4bce25e010c496ce07fd94..6d2f9d144f59d60609dc03416012320370457cfc 100644 --- a/MeshLib/PropertyVector.h +++ b/MeshLib/PropertyVector.h @@ -72,7 +72,8 @@ public: { assert(component < _n_components); assert(tuple_index < getNumberOfTuples()); - return this->operator[](tuple_index* getNumberOfTuples() + component); + return this->operator[](tuple_index* getNumberOfComponents() + + component); } PropertyVectorBase* clone(std::vector<std::size_t> const& exclude_positions) const