Author: uwestoehr
Date: Wed Jan 5 01:21:14 2011
New Revision: 37110
URL: http://www.lyx.org/trac/changeset/37110
Log:
InsetMathSubstack.cpp: fix #2498 also for branch
Modified:
lyx-devel/branches/BRANCH_1_6_X/src/mathed/InsetMathSubstack.cpp
lyx-devel/branches/BRANCH_1_6_X/status.16x
Modified: lyx-devel/branches/BRANCH_1_6_X/src/mathed/InsetMathSubstack.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/mathed/InsetMathSubstack.cpp Wed Jan
5 01:12:35 2011 (r37109)
+++ lyx-devel/branches/BRANCH_1_6_X/src/mathed/InsetMathSubstack.cpp Wed Jan
5 01:21:14 2011 (r37110)
@@ -73,6 +73,15 @@
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:
Modified: lyx-devel/branches/BRANCH_1_6_X/status.16x
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/status.16x Wed Jan 5 01:12:35 2011
(r37109)
+++ lyx-devel/branches/BRANCH_1_6_X/status.16x Wed Jan 5 01:21:14 2011
(r37110)
@@ -170,6 +170,9 @@
- 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