From: Abdelrazak Younes Date: Tue, 28 Oct 2008 17:55:00 +0000 (+0000) Subject: revert hazardous part of r26957 and add a comment, take 2. X-Git-Tag: 1.6.10~2798 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2f3fcfcb66f678b20d277ef85b37cd0713b485ee;p=features.git 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 --- diff --git a/src/Text.cpp b/src/Text.cpp index 3465a0850e..47f272fef6 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -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.