Skip to content
Snippets Groups Projects
Commit c16d6607 authored by ansgar's avatar ansgar
Browse files

fixed broken AtomView::GetBondPartners; fixed missing CMakeLists entry

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/branches/new_gfx@2257 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent bce40990
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,7 @@ if (USE_SHADER)
shader/basic_lf_fs.glsl
shader/basic_lf_vs.glsl
shader/basic_vs.glsl
shader/beacon_fs.glsl
shader/convolute1_fs.glsl
shader/dumpnorm_fs.glsl
shader/dumpnorm_vs.glsl
......
......@@ -115,7 +115,7 @@ mol::AtomViewList AtomView::GetBondPartners() const
mol::AtomViewList avl;
mol::BondHandleList::const_iterator i;
for (i=data_->bonds.begin();i!=data_->bonds.end();++i) {
if (i->GetFirst()!=*this) {
if (i->GetFirst().GetHashCode()!=this->GetHashCode()) {
avl.push_back(this->GetEntity().FindAtom(i->GetFirst()));
} else {
avl.push_back(this->GetEntity().FindAtom(i->GetSecond()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment