>>>>> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
Juergen> 1. mark a footnote or another chunk beginning with an inset
Juergen> 2. C-M
Juergen> Assertion triggered in CursorSlice LCursor::anchor() const by
Juergen> failing check "anchor_.depth() >= depth()" in file
Juergen> cursor.C:416
Juergen> Note that the footnote has to be at the very beginning of the
Juergen> selection.
Am I right that this is the fix?
JMarc
Index: src/text3.C
===================================================================
--- src/text3.C (revision 13268)
+++ src/text3.C (working copy)
@@ -135,6 +135,9 @@
string sel = cur.selectionAsString(false);
//lyxerr << "selection is: '" << sel << "'" << endl;
+ // It may happen that sel is empty but there is a selection
+ replaceSelection(cur);
+
if (sel.empty()) {
const int old_pos = cur.pos();
cur.insert(new MathHullInset("simple"));
@@ -155,7 +158,6 @@
// create a macro if we see "\\newcommand"
// somewhere, and an ordinary formula
// otherwise
- cutSelection(cur, true, true);
if (sel.find("\\newcommand") == string::npos
&& sel.find("\\def") == string::npos)
{