mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Make sure we do not crash here in release mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38720 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d7de1f2a1e
commit
da03e5b1c4
@ -22,6 +22,7 @@
|
||||
#include "MetricsInfo.h"
|
||||
#include "TextPainter.h"
|
||||
|
||||
#include "support/lassert.h"
|
||||
#include "frontends/Painter.h"
|
||||
|
||||
using namespace std;
|
||||
@ -366,23 +367,32 @@ bool InsetMathFrac::extraBraces() const
|
||||
}
|
||||
|
||||
|
||||
// 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) << ')';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user