mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Make sure primary|secondary_keymap are correct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@842 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5ce5f0a6f7
commit
87b2869419
@ -1,5 +1,8 @@
|
||||
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.
|
||||
|
||||
* INSTALL: add instructions for doing a binary distribution.
|
||||
|
16
src/lyxrc.C
16
src/lyxrc.C
@ -478,13 +478,21 @@ int LyXRC::read(string const & filename)
|
||||
break;
|
||||
|
||||
case RC_KBMAP_PRIMARY:
|
||||
if (lexrc.next())
|
||||
primary_kbmap = lexrc.GetString();
|
||||
if (lexrc.next())
|
||||
if (!LibFileSearch("kbd", lexrc.GetString(),
|
||||
"kmap").empty())
|
||||
primary_kbmap = lexrc.GetString();
|
||||
else
|
||||
lexrc.printError("LyX: Keymap `$$Token' not found");
|
||||
break;
|
||||
|
||||
case RC_KBMAP_SECONDARY:
|
||||
if (lexrc.next())
|
||||
secondary_kbmap = lexrc.GetString();
|
||||
if (lexrc.next())
|
||||
if (!LibFileSearch("kbd", lexrc.GetString(),
|
||||
"kmap").empty())
|
||||
secondary_kbmap = lexrc.GetString();
|
||||
else
|
||||
lexrc.printError("LyX: Keymap `$$Token' not found");
|
||||
break;
|
||||
|
||||
case RC_FONT_ENCODING:
|
||||
|
Loading…
Reference in New Issue
Block a user