summaryrefslogtreecommitdiffstats
path: root/src/notes.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2026-02-28 12:08:08 +0300
committerAlexander Golubev <fatzer2@gmail.com>2026-02-28 14:47:08 +0300
commit1a3f875b4379d94208819bf5f9cabc0739f9525d (patch)
treebe2510d38f3aee206b566d81263b5c275c5401a1 /src/notes.cpp
parentfaed81e0a53237b503ce4abdce46a0ae15801480 (diff)
downloadknowit-1a3f875b4379d94208819bf5f9cabc0739f9525d.tar.gz
knowit-1a3f875b4379d94208819bf5f9cabc0739f9525d.zip
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 <fatzer2@gmail.com>
Diffstat (limited to 'src/notes.cpp')
-rw-r--r--src/notes.cpp4
1 files changed, 2 insertions, 2 deletions
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<int>& 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<int>& 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();