mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Fix aliasing logic for polylines
This commit is contained in:
parent
a584c8176d
commit
0090af19d3
@ -213,7 +213,7 @@ void GuiPainter::lines(int const * xp, int const * yp, int np,
|
|||||||
if (np > points.size())
|
if (np > points.size())
|
||||||
points.resize(2 * np);
|
points.resize(2 * np);
|
||||||
|
|
||||||
bool antialias = ls != line_solid_aliased;
|
bool antialias = false;
|
||||||
for (int i = 0; i < np; ++i) {
|
for (int i = 0; i < np; ++i) {
|
||||||
points[i].setX(xp[i]);
|
points[i].setX(xp[i]);
|
||||||
points[i].setY(yp[i]);
|
points[i].setY(yp[i]);
|
||||||
@ -223,7 +223,8 @@ void GuiPainter::lines(int const * xp, int const * yp, int np,
|
|||||||
QColor const color = computeColor(col);
|
QColor const color = computeColor(col);
|
||||||
setQPainterPen(color, ls, lw);
|
setQPainterPen(color, ls, lw);
|
||||||
bool const text_is_antialiased = renderHints() & TextAntialiasing;
|
bool const text_is_antialiased = renderHints() & TextAntialiasing;
|
||||||
setRenderHint(Antialiasing, antialias && text_is_antialiased);
|
setRenderHint(Antialiasing,
|
||||||
|
antialias && text_is_antialiased && ls != line_solid_aliased);
|
||||||
if (fs == fill_none) {
|
if (fs == fill_none) {
|
||||||
drawPolyline(points.data(), np);
|
drawPolyline(points.data(), np);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user