don't crash when you press Alt Gr etc. :)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4755 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-22 22:07:16 +00:00
parent 4bf9542812
commit 907671d259
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
* QLyXKeySym.C: return 0 when text_ is empty
for getISOEncoded()
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
* QCommandBuffer.C: probably compile fix

View File

@ -56,6 +56,8 @@ string QLyXKeySym::getSymbolName() const
char QLyXKeySym::getISOEncoded() const
{
if (!text_.length())
return 0;
// FIXME
return text_.latin1()[0];
}