#include "MetricsInfo.h"
#include "TextPainter.h"
+#include "support/lassert.h"
#include "frontends/Painter.h"
using namespace std;
}
-// FIXME This will crash on unitone and is wrong in other cases.
void InsetMathFrac::maple(MapleStream & os) const
{
+ if (nargs() != 2) {
+ // Someone who knows about maple should fix this.
+ LASSERT(false, return);
+ }
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
-// FIXME This will crash on unitone and is wrong in other cases.
void InsetMathFrac::mathematica(MathematicaStream & os) const
{
+ if (nargs() != 2) {
+ // Someone who knows about mathematica should fix this.
+ LASSERT(false, return);
+ }
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
-// FIXME This will crash on unitone and is wrong in other cases.
void InsetMathFrac::octave(OctaveStream & os) const
{
+ if (nargs() != 2) {
+ // Someone who knows about octave should fix this.
+ LASSERT(false, return);
+ }
os << '(' << cell(0) << ")/(" << cell(1) << ')';
}
except on Windows, where 30 minutes are allowed. This is because the Windows
installer may trigger MiKTeX updates that suffer from network latencies.
+- Improved XHTML output of various fractions.
+
* USER INTERFACE
* DOCUMENT INPUT/OUTPUT
-- Fixed crash when outputing the unitone command to XHTML.
-
-- Improved XHTML output of various fractions.
+- Fixed crash when outputing the unitone command to XHTML or when using
+ such commands with mathematica, octave, or maple.
- Fix output of decimally aligned columns in unviewed (on screen) tables.
a document containing aligned and other multi-cell environments
(bug ##7549).
+
* USER INTERFACE
- Fix crash relating to outliner and mouse movement.