From: Abdelrazak Younes Date: Sat, 1 Aug 2009 16:06:02 +0000 (+0000) Subject: Fix an assertion with Inset::buffer(): X-Git-Tag: 2.0.0~5886 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a9b2b7f55d1978afdf923d4c9940f047af3166a7;p=features.git 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 --- 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