Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit 7cfd88e4 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed bug in ImageData::clone() not correctly copying representations.

parent 09b309ed
......@@ -53,9 +53,9 @@ namespace campvis {
ImageData* ImageData::clone() const {
ImageData* toReturn = new ImageData(_dimensionality, _size, _numChannels);
toReturn->_mappingInformation = _mappingInformation;
tbb::concurrent_vector<const AbstractImageRepresentation*>::const_iterator start = _representations.begin();
tbb::concurrent_vector<const AbstractImageRepresentation*>::const_iterator end = _representations.end();
toReturn->_representations.assign(start, end);
for (auto it = this->_representations.begin(); it != this->_representations.end(); ++it) {
(*it)->clone(toReturn);
}
return toReturn;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment