From d2aad76c13694bd417e74bfee064cfdc8875f9a2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 28 Aug 2002 20:25:15 +0000 Subject: fixed checking on valid key or modifier, bug [ 600811 ] --- src/Keys.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 3dfc37f..84953d9 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.18 2002/08/11 21:21:06 fluxgen Exp $ +//$Id: Keys.cc,v 1.19 2002/08/28 20:25:15 fluxgen Exp $ #include "Keys.hh" @@ -221,8 +221,13 @@ bool Keys::load(const char *filename) { int tmpmod=getModifier(val[argc].c_str()); if(tmpmod) mod|=tmpmod; //If it's a modifier - else{ + else { key = getKey(val[argc].c_str()); // else get the key + if (key == 0) { + cerr<<"["<