Switch to unified view
a/src/query/docseqdb.cpp | b/src/query/docseqdb.cpp | ||
---|---|---|---|
... |
... |
||
126 | return false; |
126 | return false; |
127 | string udi; |
127 | string udi; |
128 | if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath, |
128 | if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath, |
129 | udi)) |
129 | udi)) |
130 | return false; |
130 | return false; |
131 | return m_q->whatDb()->getDoc(udi, pdoc);
|
131 | bool dbret = m_q->whatDb()->getDoc(udi, pdoc); |
132 | return dbret && pdoc.pc != -1; |
||
132 | } |
133 | } |
133 | 134 | ||
134 | list<string> DocSequenceDb::expand(Rcl::Doc &doc) |
135 | list<string> DocSequenceDb::expand(Rcl::Doc &doc) |
135 | { |
136 | { |
136 | if (!setQuery()) |
137 | if (!setQuery()) |