From a9b2b7f55d1978afdf923d4c9940f047af3166a7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 1 Aug 2009 16:06:02 +0000 Subject: [PATCH] Fix an assertion with Inset::buffer(): 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 1efe7d62cf..c245423d89 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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 -- 2.39.5