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
This commit is contained in:
Abdelrazak Younes 2009-08-01 16:06:02 +00:00
parent 712b0b29ac
commit a9b2b7f55d

View 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