special math-delim handling

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6757 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-04-10 02:33:42 +00:00
parent c19addd546
commit 56fdc10f13
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-04-10 John Levon <levon@movementarian.org>
* ToolbarBackend.C (getIcon): special handling for
LFUN_MATH_DELIM
2003-04-09 Alfredo Braunstein <abraunst@libero.it>
* text2.C (cursorRight): a getChar assert fixed

View File

@ -134,8 +134,11 @@ string const ToolbarBackend::getIcon(int action)
string fullname;
FuncRequest f = lyxaction.retrieveActionArg(action);
if (f.action == LFUN_INSERT_MATH && !f.argument.empty()) {
fullname = find_xpm(f.argument.substr(1));
if (f.action == LFUN_INSERT_MATH) {
if (!f.argument.empty())
fullname = find_xpm(f.argument.substr(1));
} else if (f.action == LFUN_MATH_DELIM) {
fullname = find_xpm(f.argument);
} else {
string const name = lyxaction.getActionName(f.action);
string xpm_name(name);