Fix aliasing logic for polylines

This commit is contained in:
Guillaume Munch 2016-08-01 20:50:46 +01:00
parent a584c8176d
commit 0090af19d3

View File

@ -213,7 +213,7 @@ void GuiPainter::lines(int const * xp, int const * yp, int np,
if (np > points.size())
points.resize(2 * np);
bool antialias = ls != line_solid_aliased;
bool antialias = false;
for (int i = 0; i < np; ++i) {
points[i].setX(xp[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);
setQPainterPen(color, ls, lw);
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) {
drawPolyline(points.data(), np);
} else {