[Libreoffice] [PATCH][PUSHED] Fix for fdo#39898: don't crash on some invalid MathML objects

Caolán McNamara caolanm at redhat.com
Fri Sep 23 08:51:59 PDT 2011


On Fri, 2011-09-23 at 15:20 +0400, Ivan Timofeev wrote:
> This patch fixes crash while processing MathML objects that contain
> invalid <mmultiscripts> elements.

Looks sane to me. A good catch, pushed now.

The sad truth IIRC is that after all the MathML parsing, if there is a
alternative-presentation tag (or whatever the correct term is)
containing the classic starmath text, then everything gets thrown away
in favour of that text. And if there is no text I think it tries to
generate some from the imported node structure, and then reparses
*that*. So you end up currently always limited to the classic starmath
language because that's the only way to edit an equation.

Perhaps if/when the visual editor currently available under the
experimental option is finished that might allow things to be changed
for the better.

C.



More information about the LibreOffice mailing list