commit 91507284cb6f23fe56db3e03e8cabe6e3a7fa7b2
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Tue Apr 25 19:03:20 2017 +0200
Amend b3fbe4edfd
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 | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 3e47b64..bbf54cf 100644
--- a/src/insets/InsetSpecialChar.cpp
+++ b/src/insets/InsetSpecialChar.cpp
@@ -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;