Skip to content
Snippets Groups Projects
Commit a24bd629 authored by Tom Fischer's avatar Tom Fischer Committed by GitHub
Browse files

Merge pull request #1423 from TomFischer/FixPropertyVectorGetCompnent

Fix a bug accessing data in PropertyVector.
parents 0649eb0b 76e91613
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,8 @@ public: ...@@ -72,7 +72,8 @@ public:
{ {
assert(component < _n_components); assert(component < _n_components);
assert(tuple_index < getNumberOfTuples()); 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 PropertyVectorBase* clone(std::vector<std::size_t> const& exclude_positions) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment