]> git.lyx.org Git - features.git/commitdiff
Fix an assertion with Inset::buffer():
authorAbdelrazak Younes <younes@lyx.org>
Sat, 1 Aug 2009 16:06:02 +0000 (16:06 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 1 Aug 2009 16:06:02 +0000 (16:06 +0000)
The "character" dialog is only useful in texted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30810 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 1efe7d62cf42c5440c94a01cd0e6e33f9641912e..c245423d893ea62089bf421abb84da12a7e9a440 100644 (file)
@@ -1278,7 +1278,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
                        enable = buf->isExportable("dvi")
                                && lyxrc.print_command != "none";
                else if (name == "character") {
-                       if (!view())
+                       if (!view() || !view()->cursor().inTexted())
                                enable = false;
                        else {
                                // FIXME we should consider passthru