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:
Enrico Forestieri 2006-10-20 10:43:53 +00:00
parent 3459b8d89d
commit 899fb06023
3 changed files with 3 additions and 4 deletions

View File

@ -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]));

View File

@ -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);
}

View File

@ -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();
}
}