There is no reason for inhibiting the symbols dialog in mathed.

The dialog only offers symbols defined in the unicodesymbols file
and they will be wrapped in \text{} when inserted in math mode,
so there is no risk that an untypesettable symbol gets inserted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34344 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-04-30 08:27:03 +00:00
parent 13fe74ee51
commit a03faee92d

View File

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