From 5f08562026b6298023e86861d8b09b82bf38b966 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 4 Dec 2010 22:41:50 +0000 Subject: [PATCH] Removal of this color was forgotten. http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg163890.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36724 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Color.cpp | 1 - src/ColorCode.h | 2 -- src/rowpainter.cpp | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Color.cpp b/src/Color.cpp index 227a698982..8e4940a4fc 100644 --- a/src/Color.cpp +++ b/src/Color.cpp @@ -243,7 +243,6 @@ ColorSet::ColorSet() { Color_previewframe, N_("preview frame"), "previewframe", "black", "previewframe"}, { Color_inherit, N_("inherit"), "inherit", "black", "inherit" }, { Color_regexpframe, N_("regexp frame"), "green", "green", "green" }, - { Color_misspelled, N_("misspelled marking"), "misspelled", "red", "misspelled" }, { Color_ignore, N_("ignore"), "ignore", "black", "ignore" }, { Color_ignore, 0, 0, 0, 0 } }; diff --git a/src/ColorCode.h b/src/ColorCode.h index fc707e8cb4..7925b6e6f8 100644 --- a/src/ColorCode.h +++ b/src/ColorCode.h @@ -189,8 +189,6 @@ enum ColorCode { Color_paragraphmarker, /// Preview frame color Color_previewframe, - /// The color of the misspelled marking - Color_misspelled, // Logical attributes diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index 2d512ce48f..a63c7ea143 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -361,7 +361,7 @@ void RowPainter::paintMisspelledMark(double orig_x, int desc, bool changed) // to avoid drawing at the same vertical offset int const offset = int(1.5 * lyxrc.zoom / 100.0); // [percent] int const y = yo_ + desc + (changed ? offset : 0) + 1; - pi_.pain.line(int(orig_x), y, int(x_), y, Color_misspelled, + pi_.pain.line(int(orig_x), y, int(x_), y, Color_error, Painter::line_onoffdash, 2.0); }