mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix some glitches with fixed size delimiters
* src/mathed/MathParser.C (parse1): behave correctly when a wrong delimiter is specified. * src/mathed/InsetMathBig.C (write): don't write a space before delimiter. * src/frontends/qt4/QDelimiterDialog.C (QDelimiterDialog): make translatable the string "Variable size". git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15397 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3459b8d89d
commit
899fb06023
@ -107,7 +107,7 @@ QDelimiterDialog::QDelimiterDialog(QMathDelimiter * form)
|
||||
leftCO->addItem(QIcon(QPixmap(toqstr(empty_xpm))), qt_("(None)"));
|
||||
rightCO->addItem(QIcon(QPixmap(toqstr(empty_xpm))), qt_("(None)"));
|
||||
|
||||
sizeCO->addItem(qt_(N_("Variable size")));
|
||||
sizeCO->addItem(qt_("Variable size"));
|
||||
|
||||
for (int i = 0; *biggui[i]; ++i)
|
||||
sizeCO->addItem(qt_(biggui[i]));
|
||||
|
@ -88,7 +88,7 @@ void InsetMathBig::draw(PainterInfo & pi, int x, int y) const
|
||||
|
||||
void InsetMathBig::write(WriteStream & os) const
|
||||
{
|
||||
os << '\\' << name_ << ' ' << delim_;
|
||||
os << '\\' << name_ << delim_;
|
||||
if (delim_[0] == '\\')
|
||||
os.pendingSpace(true);
|
||||
}
|
||||
|
@ -1321,8 +1321,7 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
new InsetMathBig(t.cs(), delim)));
|
||||
else {
|
||||
cell->push_back(createInsetMath(t.cs()));
|
||||
cell->push_back(createInsetMath(
|
||||
delim.substr(1)));
|
||||
putback();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user