From 51fdd4b158f8455fb7b91e3f6b0ce38ba7139e45 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 21 Oct 2020 18:14:03 +0300 Subject: [PATCH] - fixed a bug with sel_[1 and 2] --- src/colorvec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/colorvec.cpp b/src/colorvec.cpp index 34b4d57..b3193ad 100644 --- a/src/colorvec.cpp +++ b/src/colorvec.cpp @@ -426,7 +426,7 @@ colorVec::initAnalysis( const gmx::TrajectoryAnalysisSettings &settings, } // считывание индекса indexCA.resize(0); - for (gmx::ArrayRef< const int >::iterator ai {sel_[1].atomIndices().begin()}; (ai < sel_[2].atomIndices().end()); ai++) { + for (gmx::ArrayRef< const int >::iterator ai {sel_[1].atomIndices().begin()}; (ai < sel_[1].atomIndices().end()); ai++) { index.push_back(static_cast< size_t >(*ai)); } // считывание красок -- 2.22.0