mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #7653: Quotation marks have wrong color
Quotation marks had the wrong color when using change tracking, or when
selecting.
(cherry picked from commit 14ef7d2b82
)
This commit is contained in:
parent
d4238397b9
commit
013dc6cb3a
@ -230,14 +230,15 @@ void InsetQuotes::draw(PainterInfo & pi, int x, int y) const
|
||||
{
|
||||
// FIXME: should we add a language or a font parameter member?
|
||||
docstring const text = displayString();
|
||||
|
||||
FontInfo font = pi.base.font;
|
||||
font.setPaintColor(pi.textColor(font.realColor()));
|
||||
if (text.length() == 2 && text[0] == text[1]) {
|
||||
pi.pain.text(x, y, text[0], pi.base.font);
|
||||
int const t = theFontMetrics(pi.base.font)
|
||||
pi.pain.text(x, y, text[0], font);
|
||||
int const t = theFontMetrics(font)
|
||||
.width(',');
|
||||
pi.pain.text(x + t, y, text[0], pi.base.font);
|
||||
pi.pain.text(x + t, y, text[0], font);
|
||||
} else {
|
||||
pi.pain.text(x, y, text, pi.base.font);
|
||||
pi.pain.text(x, y, text, font);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -163,6 +163,8 @@ What's new
|
||||
- Fix the random coloring of text when change tracking is on and
|
||||
pixmap caching is enabled (bug 7667).
|
||||
|
||||
- Fix the coloring of Quotation marks with change tracking (bug 7653).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user