]> git.lyx.org Git - features.git/commitdiff
The character dialog was disabled in r30810 for solving an assertion
authorEnrico Forestieri <forenr@lyx.org>
Wed, 28 Apr 2010 15:49:00 +0000 (15:49 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 28 Apr 2010 15:49:00 +0000 (15:49 +0000)
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

src/frontends/qt4/GuiView.cpp

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