Skip to content

Commit

Permalink
Atom::data_ was not copied.
Browse files Browse the repository at this point in the history
  • Loading branch information
trisyoungs committed Feb 6, 2018
1 parent 04c3757 commit 18c3546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base/atom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ bool Atom::copy(Atom* source)
fixedPosition_ = source->fixedPosition_;
for (int n=0; n<4; ++n) colour_[n] = source->colour_[n];
hidden_ = source->hidden_;
setData(source->data_);
// Do NOT copy selection or marked state (set to false)
selected_ = false;
marked_ = false;
Expand Down

0 comments on commit 18c3546

Please sign in to comment.