Skip to content

Commit

Permalink
Merge pull request #1328 from VictorLamoine/fix_pca
Browse files Browse the repository at this point in the history
Fix wrong member copy when using = operator in PCA
  • Loading branch information
taketwo committed Sep 11, 2015
2 parents 5d4364e + ff70f83 commit bde45c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/include/pcl/common/pca.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ namespace pcl
inline PCA&
operator= (PCA const & pca)
{
eigenvectors_ = pca.eigenvectors;
coefficients_ = pca.coefficients;
eigenvalues_ = pca.eigenvalues;
mean_ = pca.mean;
eigenvectors_ = pca.eigenvectors_;
coefficients_ = pca.coefficients_;
eigenvalues_ = pca.eigenvalues_;
mean_ = pca.mean_;
return (*this);
}

Expand Down

0 comments on commit bde45c5

Please sign in to comment.