[LyX/master] Fix wrong nesting in Outline.
Pavel Sanda
sanda at lyx.org
Fri Jul 28 07:18:55 UTC 2023
commit 80dac0e52ac4d79f1d250589a80385f240804751
Author: Pavel Sanda <sanda at lyx.org>
Date: Fri Jul 28 10:31:54 2023 +0200
Fix wrong nesting in Outline.
Fixes #12814, patch from Yuriy.
---
src/TocBuilder.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/TocBuilder.cpp b/src/TocBuilder.cpp
index dada6f0..aff19bc 100644
--- a/src/TocBuilder.cpp
+++ b/src/TocBuilder.cpp
@@ -61,13 +61,13 @@ void TocBuilder::captionItem(DocIterator const & dit, docstring const & s,
stack_.top().is_captioned = true;
} else {
// This is a new entry.
- pop();
// the dit is at the float's level, e.g. for the contextual menu of
// outliner entries
DocIterator captionable_dit = dit;
captionable_dit.pop_back();
pushItem(captionable_dit, s, output_active, true);
(*toc_)[stack_.top().pos].setAction(func);
+ pop();
}
}
More information about the lyx-cvs
mailing list