]> git.lyx.org Git - features.git/commitdiff
Revert some other dubious "improvements" in b627b870
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 28 Feb 2015 22:41:20 +0000 (23:41 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 28 Feb 2015 22:41:20 +0000 (23:41 +0100)
src/Text.cpp
src/Text2.cpp

index 526a1b53239a7790956797b1f88387edfaa044e3..c20c53d3385eb17025c26a44c492e5edf5245dbd 100644 (file)
@@ -113,8 +113,8 @@ static bool moveItem(Paragraph & fromPar, pos_type fromPos,
        // Therefore, it should only be used for breaking and merging paragraphs
 
        // We need a copy here because the character at fromPos is going to be erased.
-       Font const tmpFont = fromPar.getFontSettings(params, fromPos);
-       Change const tmpChange = fromPar.lookupChange(fromPos);
+       Font const tmpFont = fromPar.getFontSettings(params, fromPos);
+       Change const tmpChange = fromPar.lookupChange(fromPos);
 
        if (Inset * tmpInset = fromPar.getInset(fromPos)) {
                fromPar.releaseInset(fromPos);
@@ -2097,11 +2097,11 @@ void Text::charsTranspose(Cursor & cur)
 
        // Store the characters to be transposed (including font information).
        char_type const char1 = par.getChar(pos1);
-       Font const font1 =
+       Font const font1 =
                par.getFontSettings(cur.buffer()->params(), pos1);
 
        char_type const char2 = par.getChar(pos2);
-       Font const font2 =
+       Font const font2 =
                par.getFontSettings(cur.buffer()->params(), pos2);
 
        // And finally, we are ready to perform the transposition.
index 2597e35edffb4ec50b7834d42e1b9dbce74ef23f..4f6a975957e1e54a809a3269bfae49b76b008419 100644 (file)
@@ -408,7 +408,7 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall)
        // Try implicit word selection
        // If there is a change in the language the implicit word selection
        // is disabled.
-       CursorSlice const resetCursor = cur.top();
+       CursorSlice const resetCursor = cur.top();
        bool const implicitSelection =
                font.language() == ignore_language
                && font.fontInfo().number() == FONT_IGNORE