From d178fabe24a7d2f2a9e59516762a94f066a7229c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 5 Jul 2009 13:36:34 +0000 Subject: [PATCH] Refinements to fix for bug #6041. - Fix display of centered vertical alignment status. - Avid else branch and simply return early (conforms to the used style). - Smash unnecessary debug output. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30372 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 25cacc8fef..af85c890be 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1251,7 +1251,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd) break; } // perhaps this should be FINISHED_BACKWARD -- just for clarity? - lyxerr << "returning FINISHED_LEFT" << endl; + //lyxerr << "returning FINISHED_LEFT" << endl; break; } @@ -1414,8 +1414,10 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd, || (s == "align-center" && ha == 'c') || (s == "valign-top" && va == 't') || (s == "valign-bottom" && va == 'b') - || (s == "valign-middle" && va == 'm')); - } else if (s == "append-row" || s == "delete-row" || + || (s == "valign-middle" && va == 'c')); + return true; + } + if (s == "append-row" || s == "delete-row" || s == "copy-row" || s == "swap-row" || s == "add-hline-above" || s == "add-hline-below" || s == "delete-hline-above" || s == "delete-hline-below" || -- 2.39.5