]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 5041
authorEnrico Forestieri <forenr@lyx.org>
Wed, 30 Jul 2008 15:07:06 +0000 (15:07 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 30 Jul 2008 15:07:06 +0000 (15:07 +0000)
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

src/mathed/MathMacro.cpp

index ca3ec2298dd5ef28de987e93d728c980267671bb..eefbfff2cc6bccf4c7661146366d71ea569c2a6b 100644 (file)
@@ -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_;