Skip to content
Snippets Groups Projects
Commit 52b1874d authored by Dr. Carsten Kemena's avatar Dr. Carsten Kemena
Browse files

fixing a problem where domains at position -1 were checked

parent 5487139a
No related branches found
Tags 2.0.2
No related merge requests found
Pipeline #329050 passed with warnings with stage
in 2 minutes and 34 seconds
v 2.0.2
=======
* fixed a problem where domain order was checked although only one domain was contained
v 2.0.1
=======
......
......@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
project (BioSeqDataLib CXX)
SET(MAJOR_VERSION 2)
SET(MINOR_VERSION 0)
SET(PATCH_VERSION 1)
SET(PATCH_VERSION 2)
SET(CMAKE_CXX_FLAGS_COVERAGE
"-g -O0 --coverage -fprofile-arcs -ftest-coverage -fno-inline -fno-inline-small-functions -fno-default-inline -pedantic -Wall -Wextra"
......
......@@ -90,9 +90,12 @@ template <typename DomainType> class DomainArrangement {
void ensureOrderAfterInsertAtEnd()
{
if (domains_[domains_.size()-1] <= domains_[domains_.size()-2])
if (domains_.size() > 1)
{
std::ranges::sort(domains_);
if (domains_[domains_.size()-1] <= domains_[domains_.size()-2])
{
std::ranges::sort(domains_);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment