File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,14 @@ void CCleanupHugeAsnReader::x_CleanupTopLevelDescriptors()
185
185
CCleanup cleanup;
186
186
m_Changes += *cleanup.BasicCleanup (m_top_entry->SetDescr ());
187
187
188
+ if (m_CleanupOptions & eRemoveNcbiUserObjects) {
189
+ CCleanup::RemoveNcbiCleanupObject (m_top_entry->SetDescr ());
190
+ if (! m_top_entry->GetDescr ().IsSet () ||
191
+ m_top_entry->GetDescr ().Get ().empty ()) {
192
+ m_top_entry->SetSet ().ResetDescr ();
193
+ }
194
+ }
195
+
188
196
if (!x_IsExtendedCleanup ()) {
189
197
return ;
190
198
}
@@ -217,10 +225,6 @@ void CCleanupHugeAsnReader::x_CleanupTopLevelDescriptors()
217
225
m_Changes.SetChanged (CCleanupChange::eAddNcbiCleanupObject);
218
226
}
219
227
220
- if (m_CleanupOptions & eRemoveNcbiUserObjects) {
221
- CCleanup::RemoveNcbiCleanupObject (m_top_entry->SetDescr ());
222
- }
223
-
224
228
if (descriptors.empty ()) {
225
229
m_top_entry->SetSet ().ResetDescr ();
226
230
}
You can’t perform that action at this time.
0 commit comments