The character dialog was disabled in r30810 for solving an assertion

due to a missing buffer and because the "dialog is only useful in texted".
The problem with the buffer member has been solved since then, and while
it is true that the character dialog is not much useful in mathed, it
is the only way for coloring only parts of equations. Given that this
would also be a regression with respect to 1.6, I am re-enabling it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34327 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-04-28 15:49:00 +00:00
parent 9b3aadbe22
commit ba4e75f11c

View File

@ -1532,7 +1532,8 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
&& lyxrc.print_command != "none"; && lyxrc.print_command != "none";
else if (name == "character" || name == "symbols") { else if (name == "character" || name == "symbols") {
if (!buf || buf->isReadonly() if (!buf || buf->isReadonly()
|| !currentBufferView()->cursor().inTexted()) || (!currentBufferView()->cursor().inTexted()
&& name == "symbols"))
enable = false; enable = false;
else { else {
// FIXME we should consider passthru // FIXME we should consider passthru