revert hazardous part of r26957 and add a comment, take 2.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27170 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-10-28 17:55:00 +00:00
parent 070d75f1c6
commit 2f3fcfcb66

View File

@ -1540,12 +1540,12 @@ void Text::charsTranspose(Cursor & cur)
return;
// Store the characters to be transposed (including font information).
char_type char1 = par.getChar(pos1);
Font const & font1 =
char_type const char1 = par.getChar(pos1);
Font const font1 =
par.getFontSettings(cur.buffer().params(), pos1);
char_type char2 = par.getChar(pos2);
Font const & font2 =
char_type const char2 = par.getChar(pos2);
Font const font2 =
par.getFontSettings(cur.buffer().params(), pos2);
// And finally, we are ready to perform the transposition.