tomm...@lyx.org wrote: > Author: tommaso > Date: Thu Jan 27 00:54:12 2011 > New Revision: 37335 > URL: http://www.lyx.org/trac/changeset/37335 > > Log: > Fixing regression bug after last commit. Couldn't find anything better, > however now it apparently works and doesn't crash > (when replacing text which is longer than the replaced contents in math mode > and similar). >
> @@ -1234,10 +1234,13 @@ > regex_replace(s, s, "\\\\\\[(.*)\\\\\\]", "$1"); > repl_latex = from_utf8(s); > LYXERR(Debug::FIND, "Replacing by niceInsert()ing latex: '" << > repl_latex << "'"); > - cur.niceInsert(repl_latex); > + sel_len = cur.niceInsert(repl_latex); what return value do you expect from void cursor::niceInsert() ? pavel