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
This commit is contained in:
Enrico Forestieri 2009-07-05 13:36:34 +00:00
parent 668b4d8fc1
commit d178fabe24

View 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" ||