InsetMathSubstack.cpp: fix #2498 also for branch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37110 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2011-01-05 00:21:14 +00:00
parent 2023961297
commit 3d4865722e
2 changed files with 12 additions and 0 deletions

View File

@ -73,6 +73,15 @@ bool InsetMathSubstack::getStatus(Cursor & cur, FuncRequest const & cmd,
flag.setEnabled(false);
return true;
}
// in contrary to \subaray, the columns in \substack
// are always centered and this cannot be changed
if (s == "align-left" || s == "align-right") {
flag.message(bformat(
from_utf8(N_("Can't change horizontal alignment in '%1$s'")),
from_utf8(name)));
flag.setEnabled(false);
return true;
}
return InsetMathGrid::getStatus(cur, cmd, flag);
}
default:

View File

@ -170,6 +170,9 @@ What's new
- Fix the response of the update button of the view source window
after reopening a file (bug 5600).
- Don't allow to set an alignment for rows in math substack environments
(bug 2498).
* DOCUMENTATION AND LOCALIZATION