]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / rowpainter.cpp
index 8ef3b6f310a67bcd8a357d554d9250ad766648dc..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);
 }