Make sure primary|secondary keymaps given in lyxrc are correct

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@843 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-06-27 16:45:56 +00:00
parent 568ca3c3e1
commit 4ca058e2ae
2 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2000-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2000-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/lyxrc.C (read): make sure the .kmap files exist when a keymap
is specified (adapted from a patch from edscott <edscott@imp.mx>).
* Makefile.am (bindist): new target. * Makefile.am (bindist): new target.
* INSTALL: add instructions for doing a binary distribution. * INSTALL: add instructions for doing a binary distribution.

View File

@ -472,12 +472,20 @@ int LyXRC::read(string const & filename)
case RC_KBMAP_PRIMARY: case RC_KBMAP_PRIMARY:
if (lexrc.next()) if (lexrc.next())
primary_kbmap = lexrc.GetString(); if (!LibFileSearch("kbd", lexrc.GetString(),
"kmap").empty())
primary_kbmap = lexrc.GetString();
else
lexrc.printError("LyX: Keymap `$$Token' not found");
break; break;
case RC_KBMAP_SECONDARY: case RC_KBMAP_SECONDARY:
if (lexrc.next()) if (lexrc.next())
secondary_kbmap = lexrc.GetString(); if (!LibFileSearch("kbd", lexrc.GetString(),
"kmap").empty())
secondary_kbmap = lexrc.GetString();
else
lexrc.printError("LyX: Keymap `$$Token' not found");
break; break;
case RC_FONT_ENCODING: case RC_FONT_ENCODING: