Jean-Marc Lasgouttes schrieb:
"Bernhard" == Bernhard Roider <[EMAIL PROTECTED]> writes:
Bernhard> Hello, the crash occured because
Bernhard> ControlExternal::getTemplate() is called with the index -1
Bernhard> which produces an invalid iterator that is accessed
Bernhard> afterwards.
Why does having user defined templates trigger the bug?
Ok, now i think i know why:
In InsetExternal.cpp the line
string defaultTemplateName = "RasterImage";
seems to define the default template which is missing when having user defined templates, because
then the system defined templates are not loaded.
I have a patch that makes lyx load system and user defined templates. if there is no bug# for that i
will create one, because it is really necessary IMHO.
bernhard