caleeli / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
1 stars 0 forks source link

Bug with integrals (with no sub/superscript) #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am currently using an adaptation of MathML editor/formula together, and I
greatly admire the work you've done!

I've noticed a small bug that I've been trying to figure out within
mathml:formula, but it has been riddling me for the past few days.  When
using your mathml:editor, I've discovered that the mathML produced by
clicking on any integral button (single/double/triple) with no
sub/superscript gives an error when submitted into mathml:forumla. 

This is the flash error that is produced within mathml:forumla:

TypeError: Error #1034: Type Coercion failed: cannot convert
learnmath.mathml.formula.layout::RowBox@c42a971 to
learnmath.mathml.formula.script.SubSupBox.
    at
learnmath.mathml.formula.token.operators.integrals::IntOBox/changeSizeFromParent
()
    at learnmath.mathml.formula::ResizeBox$/resizeChildren()
    at learnmath.mathml.formula::DrawFormula/draw()
    at learnmath.mathml::MathML/drawFormula()
    at displayML_fla::MainTimeline/frame3()

Here is a sample MathML for you to test (that was produced by mathml:editor):

<m:math xmlns:m='http://www.w3.org/1998/Math/MathML' >
    <mrow color='#undefined' fontsize='11' fontfamily='undefined' >
        <mo>&int;</mo>
        <mtext>3x</mtext>
        <mo>+</mo>
        <mtext>1</mtext>
    </mrow>
</m:math>

If you could provide me any direction to solve this issue, I'd most
appreciate it.  Thank you for your help, your work so far has been
incredibly valuable.

-Aykut Unsal

Original issue reported on code.google.com by aunsa...@gmail.com on 29 Apr 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by ionel.alexandru@gmail.com on 26 Jun 2009 at 6:59