Skip to content

Commit 3cde700

Browse files
Jonathan Kansgouriano
Jonathan Kans
authored andcommitted
JIRA:RW-2412 check if gbqual on seqfeat is sorted before calling expensive sort
git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@104418 78c7ea69-d796-4a43-9a09-de51944f1b03
1 parent 20e0ec7 commit 3cde700

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/objtools/cleanup/newcleanupp.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6250,9 +6250,11 @@ void CNewCleanup_imp::x_CleanSeqFeatQuals(CSeq_feat& sf)
62506250
GBQualBC(gbq);
62516251
}
62526252

6253-
// sort/unique gbquals, just alphabetically
6254-
if (SortGBQuals(sf)) {
6255-
ChangeMade(CCleanupChange::eCleanQualifiers);
6253+
if (! GBQUAL_ON_SEQFEAT_IS_SORTED (sf, s_GbQualCompareLegalFirst)) {
6254+
// sort/unique gbquals, just alphabetically
6255+
if (SortGBQuals(sf)) {
6256+
ChangeMade(CCleanupChange::eCleanQualifiers);
6257+
}
62566258
}
62576259

62586260
if (!GBQUAL_ON_SEQFEAT_IS_UNIQUE(sf, s_GbQualEqual)) {

0 commit comments

Comments
 (0)