]> git.lyx.org Git - features.git/commitdiff
Amend b3fbe4edfd
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 25 Apr 2017 17:03:20 +0000 (19:03 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 25 Apr 2017 17:03:20 +0000 (19:03 +0200)
It is better to enumerate all possibilities. Now we have a list of
special characters that do not have a tooltip.

src/insets/InsetSpecialChar.cpp

index 3e47b642a2b4c1aa2ea8d9392185b27235d6bd34..bbf54cf04c9ce9b7a8301e00bdcc06d494e4cf03 100644 (file)
@@ -108,7 +108,13 @@ docstring InsetSpecialChar::toolTip(BufferView const &, int, int) const
                case NOBREAKDASH:
                        message = from_ascii("Protected Hyphen (SHY)");
                        break;
-               default:
+               case LDOTS:
+               case MENU_SEPARATOR:
+               case PHRASE_LYX:
+               case PHRASE_TEX:
+               case PHRASE_LATEX2E:
+               case PHRASE_LATEX:
+                       // no tooltip for these ones.
                        break;
        }
        return message;