Fix use of pointer arithmetic where string concatenation was intended

This commit is contained in:
2015-02-11 20:34:18 -05:00
parent 120561ae64
commit 4bc04886f6

View File

@@ -247,9 +247,10 @@ void cControl::setTextToKey(){
unsigned char c = key.c;
if(key.mod - mod_shift != key.mod) c = applyShift(c);
else c = removeShift(c);
if(key.mod - mod_ctrl != key.mod) lbl = "^" + c;
else if(key.mod - mod_alt != key.mod) lbl = "*" + c;
else lbl = c;
lbl.clear();
if(key.mod - mod_ctrl != key.mod) lbl += '^';
else if(key.mod - mod_alt != key.mod) lbl = '*';
lbl += c;
}
if(isVisible()) draw();
}