fix thinko in 'double space suppression'

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3016 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-11-13 08:24:41 +00:00
parent d76cb8f1cf
commit 7f7275c914

View File

@ -1396,7 +1396,7 @@ bool MathCursor::interpret(char c)
// suppress direct insertion of to spaces in a row
// the still allows typing '<space>a<space>' and deleting the 'a', but
// it is better than nothing
if (hasPrevAtom() && prevAtom()->getChar() == ' ')
if (c == ' ' && hasPrevAtom() && prevAtom()->getChar() == ' ')
return true;
insert(c, LM_TC_TEXTRM);
return true;