]> git.lyx.org Git - features.git/commitdiff
revert hazardous part of r26957 and add a comment, take 2.
authorAbdelrazak Younes <younes@lyx.org>
Tue, 28 Oct 2008 17:55:00 +0000 (17:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 28 Oct 2008 17:55:00 +0000 (17:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27170 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 3465a0850e5087d2358b9420bbfa9bd99797f321..47f272fef66d3c33c6e326f9e43beec44064eefc 100644 (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.