From 2f3fcfcb66f678b20d277ef85b37cd0713b485ee Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 28 Oct 2008 17:55:00 +0000 Subject: [PATCH] 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 --- src/Text.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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. -- 2.39.2