diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index ec0385f89a..9ce4cb8431 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,8 @@ +2002-07-22 John Levon + + * QLyXKeySym.C: return 0 when text_ is empty + for getISOEncoded() + 2002-07-22 John Levon * QCommandBuffer.C: probably compile fix diff --git a/src/frontends/qt2/QLyXKeySym.C b/src/frontends/qt2/QLyXKeySym.C index aeeccc9dcb..c42dc3febe 100644 --- a/src/frontends/qt2/QLyXKeySym.C +++ b/src/frontends/qt2/QLyXKeySym.C @@ -56,6 +56,8 @@ string QLyXKeySym::getSymbolName() const char QLyXKeySym::getISOEncoded() const { + if (!text_.length()) + return 0; // FIXME return text_.latin1()[0]; }