From: Enrico Forestieri Date: Wed, 28 Apr 2010 15:49:00 +0000 (+0000) Subject: The character dialog was disabled in r30810 for solving an assertion X-Git-Tag: 2.0.0~3325 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ba4e75f11c33ba020f15ec2abffccd9f5016ce92;p=features.git The character dialog was disabled in r30810 for solving an assertion 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 --- diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 906654cead..2c92be6d34 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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