]> git.lyx.org Git - lyx.git/commitdiff
InsetMathSubstack.cpp: fix #2498
authorUwe Stöhr <uwestoehr@web.de>
Mon, 29 Nov 2010 03:18:02 +0000 (03:18 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Mon, 29 Nov 2010 03:18:02 +0000 (03:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36567 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathSubstack.cpp

index 2fb05748b225e52953a4c2f679c9e83f61e07a08..fccdf7b3c3aacedeaeaad18141d0819d69159e02 100644 (file)
@@ -78,8 +78,18 @@ 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;
+               }
                break;
        }
+
        default:
                break;
        }