From: Enrico Forestieri Date: Wed, 30 Jul 2008 15:07:06 +0000 (+0000) Subject: Fix bug 5041 X-Git-Tag: 1.6.10~3787 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dac70247f03c3596b54bae1ea0435646eb2776fc;p=lyx.git Fix bug 5041 http://bugzilla.lyx.org/show_bug.cgi?id=5041 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26002 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index ca3ec2298d..eefbfff2cc 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -133,8 +133,7 @@ Inset * MathMacro::clone() const docstring MathMacro::name() const { - if (displayMode_ == DISPLAY_UNFOLDED - && (name_.size() > 1 || (name_[0] != '_' && name_[0] != '^'))) + if (displayMode_ == DISPLAY_UNFOLDED && name_.size() != 1) return asString(cell(0)); return name_;