mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Fix bug #3294
This commit is contained in:
parent
a3e10cd067
commit
195b928f92
@ -23,6 +23,7 @@
|
||||
#include "frontends/Painter.h"
|
||||
|
||||
#include "support/lassert.h"
|
||||
#include "support/lstrings.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -135,6 +136,10 @@ void InsetMathRoot::draw(PainterInfo & pi, int x, int y) const
|
||||
void InsetMathRoot::write(TeXMathStream & os) const
|
||||
{
|
||||
MathEnsurer ensurer(os);
|
||||
if (os.latex() && !cell(1).empty() && !cell(1).front()->asBraceInset()
|
||||
&& support::contains(asString(cell(1)), '['))
|
||||
os << "\\sqrt[{" << cell(1) << "}]{" << cell(0) << '}';
|
||||
else
|
||||
os << "\\sqrt[" << cell(1) << "]{" << cell(0) << '}';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user