--- a/src/query/docseq.cpp
+++ b/src/query/docseq.cpp
@@ -21,6 +21,9 @@
#include "filtseq.h"
#include "sortseq.h"
#include "debuglog.h"
+
+string DocSequence::o_sort_trans;
+string DocSequence::o_filt_trans;
int DocSequence::getSeqSlice(int offs, int cnt, vector<ResListEntry>& result)
{
@@ -78,11 +81,10 @@
return true;
}
-string DocSource::o_sort_trans;
-string DocSource::o_filt_trans;
-
string DocSource::title()
{
+ if (m_seq.isNull())
+ return "";
string qual;
if (m_fspec.isNotNull() && !m_sspec.isNotNull())
qual = string(" (") + o_filt_trans + string(")");