]> git.lyx.org Git - features.git/commitdiff
Refinements to fix for bug #6041.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 5 Jul 2009 13:36:34 +0000 (13:36 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 5 Jul 2009 13:36:34 +0000 (13:36 +0000)
- 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

index 25cacc8fef685bbd170af17a689d312a856c128b..af85c890bec1a9aad363786441036115147d2ad5 100644 (file)
@@ -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" ||