]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
typo
[lyx.git] / src / rowpainter.cpp
index 6cf341016dfcf6f4292e03ff46859c65a1f13ff5..6d56c27b60db69ccbb6743e91c3930cc8d68000e 100644 (file)
@@ -312,12 +312,12 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font,
        }
        
        FontInfo copy = font;
-       if (selection)
-               copy.setColor(Color_selectiontext);
-       else if (change_type == Change::DELETED)
+       if (change_type == Change::DELETED)
                copy.setColor(Color_deletedtext);
        else if (change_type == Change::INSERTED)
                copy.setColor(Color_addedtext);
+       else if (selection)
+               copy.setColor(Color_selectiontext);
 
        x_ += pi_.pain.text(int(x_), yo_, s, copy);
 }
@@ -838,8 +838,6 @@ void RowPainter::paintInlineCompletion(Font const & font)
        // right to left?
        if (rtl) {
                swap(s1, s2);
-               reverse(s1.begin(), s1.end());
-               reverse(s2.begin(), s2.end());
                swap(c1, c2);
        }