diff --git a/src/notes.cpp b/src/notes.cpp index c47e746..8941e50 100644 --- a/src/notes.cpp +++ b/src/notes.cpp @@ -301,7 +301,7 @@ bool TNote::saveHTMLBuf(TQTextStream& ts, TQValueVector& depths, depths.append(0); collection->find(item->firstChild())->saveHTMLBuf(ts, depths, flags); } - if ((SaveSubnotes | SaveAll) & flags && item->nextSibling()) + if (SaveAll & flags && item->nextSibling()) collection->find(item->nextSibling())->saveHTMLBuf(ts, depths, flags); if (!item->nextSibling()) depths.pop_back(); @@ -331,7 +331,7 @@ bool TNote::saveHTMLTocEntry(TQTextStream& ts, TQValueVector& depths, int f depths.append(0); collection->find(item->firstChild())->saveHTMLTocEntry(ts, depths, flags); } - if ((SaveSubnotes | SaveAll) & flags && item->nextSibling()) + if (SaveAll & flags && item->nextSibling()) collection->find(item->nextSibling())->saveHTMLTocEntry(ts, depths, flags); if (!item->nextSibling()) { depths.pop_back();