From 1a3f875b4379d94208819bf5f9cabc0739f9525d Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sat, 28 Feb 2026 12:08:08 +0300 Subject: Fix "Current with children" export option Before that "Export to HTML -> Exported notes -> Current with children" were exporting current note with its children and all following notes. Signed-off-by: Alexander Golubev --- src/notes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notes.cpp') 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(); -- cgit v1.2.3