Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
7cfd88e4
Commit
7cfd88e4
authored
Apr 15, 2014
by
Christian Schulte zu Berge
Browse files
Fixed bug in ImageData::clone() not correctly copying representations.
parent
09b309ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/datastructures/imagedata.cpp
View file @
7cfd88e4
...
...
@@ -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
star
t
=
_representations
.
begin
();
tbb
::
concurrent_vector
<
const
AbstractImageRepresentation
*>::
const_iterator
end
=
_representations
.
end
(
);
toReturn
->
_representations
.
assign
(
start
,
end
);
for
(
auto
it
=
this
->
_representations
.
begin
();
i
t
!
=
this
->
_representations
.
end
();
++
it
)
{
(
*
it
)
->
clone
(
toReturn
);
}
return
toReturn
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment