commit 80dac0e52ac4d79f1d250589a80385f240804751
Author: Pavel Sanda <[email protected]>
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();
}
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs