On Thu, Jul 29, 2010 at 5:38 PM, <[email protected]> wrote:

> Author: rgheck
> Date: Thu Jul 29 17:38:01 2010
> New Revision: 35025
> URL: http://www.lyx.org/trac/changeset/35025
>
> Log:
> MathML and HTML definitely can't handle XYMatrix.
>
> Modified:
>   lyx-devel/trunk/src/mathed/InsetMathXYMatrix.cpp
>   lyx-devel/trunk/src/mathed/InsetMathXYMatrix.h
>
> Modified: lyx-devel/trunk/src/mathed/InsetMathXYMatrix.cpp
>
> ==============================================================================
> --- lyx-devel/trunk/src/mathed/InsetMathXYMatrix.cpp    Thu Jul 29 17:37:42
> 2010        (r35024)
> +++ lyx-devel/trunk/src/mathed/InsetMathXYMatrix.cpp    Thu Jul 29 17:38:01
> 2010        (r35025)
> @@ -140,4 +140,16 @@
>  }
>
>
> +void InsetMathXYMatrix::mathmlize(MathStream &) const
> +{
> +       throw MathExportException();
> +}
>

Why not simply returning a bool?
Exceptions should be reserved to exceptional things that break the working
flow. Such is not the case here IMHO.

Abdel

Reply via email to